Home » U++ Library support » U++ MT-multithreading and servers » bug in CoWork since C++11
Re: bug in CoWork since C++11 [message #46686 is a reply to message #46466] |
Mon, 11 July 2016 19:36 |
crydev
Messages: 151 Registered: October 2012 Location: Netherlands
|
Experienced Member |
|
|
I did some more debugging, and I found that it goes wrong in this function, in CoWork.cpp on line 196. It will wait infinitely until jobs are done, while there are still jobs to be done.
void CoWork::Finish() {
if(!pool) return;
Pool& p = *pool;
p.lock.Enter();
while(todo) {
LLOG("Finish: todo: " << todo << " (CoWork " << FormatIntHex(this) << ")");
if(todo == 0)
break;
if(p.scheduled)
Pool::DoJob();
else {
p.lock.Leave();
LLOG("WaitForFinish (CoWork " << FormatIntHex(this) << ")");
waitforfinish.Wait(); // <---- Infinite wait here!
p.lock.Enter();
}
}
p.lock.Leave();
LLOG("CoWork " << FormatIntHex(this) << " finished");
}
It is a very annoying bug.
Thanks,
crydev
[Updated on: Mon, 11 July 2016 19:37] Report message to a moderator
|
|
|
|
|
bug in CoWork since C++11
By: crydev on Fri, 13 May 2016 06:53
|
|
|
Re: bug in CoWork since C++11
By: mirek on Sat, 21 May 2016 19:43
|
|
|
Re: bug in CoWork since C++11
By: crydev on Sat, 02 July 2016 17:49
|
|
|
Re: bug in CoWork since C++11
By: crydev on Mon, 11 July 2016 19:36
|
|
|
Re: bug in CoWork since C++11
By: mirek on Sat, 30 July 2016 18:36
|
|
|
Re: bug in CoWork since C++11
By: crydev on Wed, 03 August 2016 19:45
|
|
|
Re: bug in CoWork since C++11
By: mirek on Thu, 04 August 2016 21:58
|
|
|
Re: bug in CoWork since C++11
By: crydev on Sun, 07 August 2016 11:50
|
|
|
Re: bug in CoWork since C++11
By: mirek on Sun, 07 August 2016 20:36
|
|
|
Re: bug in CoWork since C++11
By: mirek on Mon, 08 August 2016 09:32
|
|
|
Re: bug in CoWork since C++11
By: crydev on Mon, 08 August 2016 19:30
|
|
|
Re: bug in CoWork since C++11
By: mirek on Tue, 09 August 2016 11:15
|
|
|
Re: bug in CoWork since C++11
By: crydev on Tue, 09 August 2016 11:36
|
|
|
Re: bug in CoWork since C++11
By: mirek on Tue, 09 August 2016 11:43
|
|
|
Re: bug in CoWork since C++11
By: crydev on Thu, 18 August 2016 20:58
|
|
|
Re: bug in CoWork since C++11
By: mirek on Tue, 23 August 2016 08:34
|
|
|
Re: bug in CoWork since C++11
By: crydev on Tue, 23 August 2016 20:39
|
|
|
Re: bug in CoWork since C++11
By: mirek on Wed, 24 August 2016 21:08
|
|
|
Re: bug in CoWork since C++11
By: crydev on Thu, 25 August 2016 19:09
|
Goto Forum:
Current Time: Thu May 16 00:34:40 CEST 2024
Total time taken to generate the page: 0.02794 seconds
|