mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-11-26 18:46:42 -05:00
Cleanup RsThread and related classes
Removed antipattern abstraction RsSingleJobThread Rename runloop() method to run() in RsThread Ported few classes ineriting from RsSingleJobThread to RsThread RsThread use std::atomic instead of self implemented strange binary semaphores Removed RsTickingThread::shutdown() use RsThread::askForStop() instead Removed RsTickingThread::fullstop() use RsThread::fullstop() instead Stop properly JSON API server in retroshare-gui Centralize errno traslation to literal in util/rserrno.*
This commit is contained in:
parent
358aa1e0ab
commit
df87fe53b1
43 changed files with 490 additions and 587 deletions
|
|
@ -234,28 +234,28 @@ void ftServer::StartupThreads()
|
|||
void ftServer::StopThreads()
|
||||
{
|
||||
/* stop Dataplex */
|
||||
mFtDataplex->join();
|
||||
mFtDataplex->fullstop();
|
||||
|
||||
/* stop Controller thread */
|
||||
mFtController->join();
|
||||
mFtController->fullstop();
|
||||
|
||||
/* self contained threads */
|
||||
/* stop ExtraList Thread */
|
||||
mFtExtra->join();
|
||||
mFtExtra->fullstop();
|
||||
|
||||
delete (mFtDataplex);
|
||||
mFtDataplex = NULL;
|
||||
mFtDataplex = nullptr;
|
||||
|
||||
delete (mFtController);
|
||||
mFtController = NULL;
|
||||
mFtController = nullptr;
|
||||
|
||||
delete (mFtExtra);
|
||||
mFtExtra = NULL;
|
||||
mFtExtra = nullptr;
|
||||
|
||||
/* stop Monitor Thread */
|
||||
mFileDatabase->stopThreads();
|
||||
delete mFileDatabase;
|
||||
mFileDatabase = NULL ;
|
||||
mFileDatabase = nullptr;
|
||||
}
|
||||
|
||||
/***************************************************************/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue