mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-03 06:35:08 -04:00
generally prevent threads to start twice, and fixed bug causing DirWatcher to be run twice
This commit is contained in:
parent
eb95c6895a
commit
461975f115
2 changed files with 8 additions and 3 deletions
|
@ -157,6 +157,11 @@ void RsTickingThread::fullstop()
|
|||
|
||||
void RsThread::start(const std::string &threadName)
|
||||
{
|
||||
if(isRunning())
|
||||
{
|
||||
std::cerr << "(EE) RsThread \"" << threadName << "\" is already running. Will not start twice!" << std::endl;
|
||||
return ;
|
||||
}
|
||||
pthread_t tid;
|
||||
void *data = (void *)this ;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue