Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.programming.threads > #1003
| From | "aminer" <aminer@videotron.ca> |
|---|---|
| Newsgroups | comp.programming.threads, comp.programming |
| Subject | I have corrected a problem inside my threadpool engine... |
| Date | 2012-08-17 18:16 -0500 |
| Organization | A noiseless patient Spider |
| Message-ID | <k0mfrh$s6r$1@dont-email.me> (permalink) |
Cross-posted to 2 groups.
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 comp.programming.threads | Previous | Next | Find similar | Unroll thread
I have corrected a problem inside my threadpool engine... "aminer" <aminer@videotron.ca> - 2012-08-17 18:16 -0500
csiph-web