Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.programming.threads > #1003 > unrolled thread

I have corrected a problem inside my threadpool engine...

Started by"aminer" <aminer@videotron.ca>
First post2012-08-17 18:16 -0500
Last post2012-08-17 18:16 -0500
Articles 1 — 1 participant

Back to article view | Back to comp.programming.threads


Contents

  I have corrected a problem inside my threadpool engine... "aminer" <aminer@videotron.ca> - 2012-08-17 18:16 -0500

#1003 — I have corrected a problem inside my threadpool engine...

From"aminer" <aminer@videotron.ca>
Date2012-08-17 18:16 -0500
SubjectI have corrected a problem inside my threadpool engine...
Message-ID<k0mfrh$s6r$1@dont-email.me>

Hello,

I have updated my threadpool engine and corrected the following problem:

inside the  TThreadPoolThread.Execute() method, you have to set count to 0

before executing  the following  loop:

for i:=0 to FThreadpool.Fthreadcount-1 do 
count:=count+FThreadPool.Queues[i].count;

I have corrected this problem and updated all my libraries that use my 
threadpool engine ,

you can download my threadpool engine and all my libraries from:

http://pages.videotron.com/aminer/



Thank you,

Amine Moulay Ramdane.









if ThreadPool.Queues[self.threadcount].count <> 0

then continue;


count:=0;

for i:=0 to FThreadpool.Fthreadcount-1 do 
count:=count+FThreadPool.Queues[i].count;



if count=0 then

begin

FThreadpool.events[self.threadcount].waitfor(INFINITE);

FThreadpool.events[self.threadcount].resetevent;

end;


end;

[toc] | [standalone]


Back to top | Article view | comp.programming.threads


csiph-web