Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.programming.threads > #1003 > unrolled thread
| Started by | "aminer" <aminer@videotron.ca> |
|---|---|
| First post | 2012-08-17 18:16 -0500 |
| Last post | 2012-08-17 18:16 -0500 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.programming.threads
I have corrected a problem inside my threadpool engine... "aminer" <aminer@videotron.ca> - 2012-08-17 18:16 -0500
| From | "aminer" <aminer@videotron.ca> |
|---|---|
| Date | 2012-08-17 18:16 -0500 |
| Subject | I 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;
Back to top | Article view | comp.programming.threads
csiph-web