Home » U++ Library support » U++ MT-multithreading and servers » bug in CoWork since C++11
Re: bug in CoWork since C++11 [message #46782 is a reply to message #46763] |
Wed, 03 August 2016 19:45   |
crydev
Messages: 151 Registered: October 2012 Location: Netherlands
|
Experienced Member |
|
|
Thanks for your reply Mirek,
I can't spot anything that would deadlock in my code. I enabled LLOG (I guess) by uncommenting the define LLOG at the top of CoWork.cpp. Is that correct? At first, I got a compiler error, because the PushJob function is static. Line 150 in CoWork.cpp gives a compiler error:
LLOG("Adding job " << p.scheduled - 1 << "; todo: " << todo << " (CoWork " << FormatIntHex(this) << ")");
I went on commenting out this LLOG line and starting executing my code. The log I got was as following. I don't fully understand what the structuring of the log is, but it seems like it quits executing when #todo is still 2.
DoJobA 1, todo: 7 (CoWork 0105d194)
Finished, remaining todo 7
#4 Job finished
#4 Job acquired
Quit thread
CoWork thread #4 finished
DoJobA 1, todo: 6 (CoWork 0105d194)
Finished, remaining todo 6
#1 Job finished
#1 Job acquired
Quit thread
CoWork thread #1 finished
DoJobA 1, todo: 5 (CoWork 0105d194)
Finished, remaining todo 5
#2 Job finished
#2 Job acquired
Quit thread
CoWork thread #2 finished
DoJobA 1, todo: 4 (CoWork 0105d194)
Finished, remaining todo 4
#5 Job finished
#5 Job acquired
Quit thread
CoWork thread #5 finished
DoJobA 1, todo: 3 (CoWork 0105d194)
Finished, remaining todo 3
#6 Job finished
#6 Job acquired
Quit thread
CoWork thread #6 finished
DoJobA 1, todo: 2 (CoWork 0105d194)
Finished, remaining todo 2
#0 Job finished
#0 Job acquired
Quit thread
CoWork thread #0 finished
Quit ended
Thanks,
crydev
|
|
|
 |
|
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: Mon Aug 25 22:50:21 CEST 2025
Total time taken to generate the page: 0.00755 seconds
|