Home » U++ Library support » U++ MT-multithreading and servers » what about WorkQueue : public CoWork
changed CoWork and derived WorkQueue [message #24899 is a reply to message #24897] |
Wed, 03 February 2010 15:03   |
 |
kohait00
Messages: 939 Registered: July 2009 Location: Germany
|
Experienced Contributor |
|
|
hi there, here comes a changed CoWork, which now basicly is able to specify wheather to use common/static threadpool or own thread pool (is beeing decided in CoWork() based on threadnr < 0 -> common pool)
the WorkQueue then is a simple derived class, which specifies 1 for threadnr and thus uses own thread.
this is subject to test .. if anyone besides me would need that.
regarding wild CoWork ctor init list:
it might be that the init order could differ, so the One<Pool> _opool could be not initialized before setting up pool.
this could be changed in a way that pool() -> pool(int threadnr = -1, CoWork * _this) returns either the global pool or costructs One<Pool>, which now is done in CoWork init list 
comments welcome
-
Attachment: CoWork.h
(Size: 1.17KB, Downloaded 407 times)
-
Attachment: CoWork.cpp
(Size: 2.96KB, Downloaded 797 times)
[Updated on: Wed, 03 February 2010 15:06] Report message to a moderator
|
|
|
 |
|
what about WorkQueue : public CoWork
By: kohait00 on Wed, 03 February 2010 07:26
|
 |
|
Re: what about WorkQueue : public CoWork
By: koldo on Wed, 03 February 2010 08:22
|
 |
|
Re: what about WorkQueue : public CoWork
By: kohait00 on Wed, 03 February 2010 08:58
|
 |
|
first, CoWork.h and CoWork.cpp cleanups
By: kohait00 on Wed, 03 February 2010 12:07
|
 |
|
WorkQueue
By: kohait00 on Wed, 03 February 2010 12:14
|
 |
|
Re: what about WorkQueue : public CoWork
By: mirek on Wed, 03 February 2010 12:36
|
 |
|
Re: what about WorkQueue : public CoWork
By: kohait00 on Wed, 03 February 2010 13:31
|
 |
|
changed CoWork and derived WorkQueue
By: kohait00 on Wed, 03 February 2010 15:03
|
 |
|
Re: changed CoWork and derived WorkQueue
By: mirek on Wed, 03 February 2010 15:08
|
 |
|
Re: changed CoWork and derived WorkQueue
By: kohait00 on Wed, 03 February 2010 15:14
|
 |
|
Re: changed CoWork and derived WorkQueue
By: mirek on Wed, 03 February 2010 20:45
|
 |
|
Re: changed CoWork and derived WorkQueue
By: kohait00 on Wed, 03 February 2010 21:58
|
 |
|
2 basic problems
By: kohait00 on Mon, 08 February 2010 22:29
|
 |
|
Re: changed CoWork and derived WorkQueue
By: mirek on Tue, 09 February 2010 10:56
|
 |
|
Re: changed CoWork and derived WorkQueue
By: kohait00 on Tue, 09 February 2010 15:14
|
 |
|
Re: changed CoWork and derived WorkQueue
By: mirek on Mon, 15 February 2010 12:49
|
 |
|
Re: changed CoWork and derived WorkQueue
By: kohait00 on Tue, 16 February 2010 14:44
|
 |
|
BUGFIX to WorkQueue
By: kohait00 on Thu, 18 February 2010 16:02
|
 |
|
Re: BUGFIX to WorkQueue
By: kohait00 on Fri, 19 February 2010 08:47
|
Goto Forum:
Current Time: Sat Jul 19 05:03:37 CEST 2025
Total time taken to generate the page: 0.03843 seconds
|