Home » U++ Library support » U++ MT-multithreading and servers » bug in CoWork since C++11
Re: bug in CoWork since C++11 [message #46788 is a reply to message #46787] |
Sun, 07 August 2016 20:36 |
|
mirek
Messages: 13980 Registered: November 2005
|
Ultimate Member |
|
|
crydev wrote on Sun, 07 August 2016 11:50mirek wrote on Thu, 04 August 2016 21:58"Quit thread"
- this is interesting. It looks like you are quiting the thread that spawned jobs before it has the chance to finish.
Is not it possible that you are calling Finish (perhaps via ~CoWork) from other thread than the one that scheduled the work? Or in other words, have CoWork instance shared between threads?
I had two instances of Finish in my code, and I was sharing the CoWork instance for different purposes. Is that not a good idea? It used to work fine.
mirek wrote on Thu, 04 August 2016 21:58
It is true that between 'classic' and 'C++11' I have changed the logic so that each 'master thread' has its own pool of worker threads, to avoid work stealing. Perhaps it was not a good idea after all..
Has the way CoWork should be used changed with the C++11 way of U++? I see a thread pool as an object that makes sure tasks you give it are dispatched into other threads, regardless of where the tasks come from. Does it work differently with CoWork? I also saw a CoWork changed commit this morning. Did anything important change?
Thanks
crydev
Well, I rethought the whole thing... I guess new iteration will work just fine again.
It is not 100% finished yet, maybe wait till tomorrow.
Mirek
|
|
|
|
|
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: Wed May 15 03:15:35 CEST 2024
Total time taken to generate the page: 0.02068 seconds
|