Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Revamping Code Completion with little changes
rickg22:
Just... be careful... :P
Anyway you might like subclassing my managedthread class for the threadpool. This way we can make all the threads abort immediately (almost) by setting a single flag.
zieQ:
Humm forget what I have said: no thread poll for compilation since wxExecute deals with processes and not threads. However, a thread pool could be useful. Be careful, it should be a singleton (one instance).
mandrav:
--- Quote from: zieQ on August 22, 2005, 05:28:59 pm ---However, a thread pool could be useful. Be careful, it should be a singleton (one instance).
--- End quote ---
Why a singleton? You could have many different pools (if needed). Why restrict yourself to just one global pool?
One pool for code-completion, one for compiler, etc.
And the compiler could use thread pooling. Each wxExecute could be executed in a thread pool worker class...
Yiannis.
rickg22:
And don't forget Search-in-files and TODO list! :D
OK, but if the code completion is going to use the thread pool, how long will I have to wait before the pool's ready so I can make the changes to CC? Or should I begin the changes and later we can switch to using the pool?
mandrav:
--- Quote from: rickg22 on August 22, 2005, 06:33:36 pm ---And don't forget Search-in-files and TODO list! :D
OK, but if the code completion is going to use the thread pool, how long will I have to wait before the pool's ready so I can make the changes to CC? Or should I begin the changes and later we can switch to using the pool?
--- End quote ---
I said I 'm doing it. Stop being impatient ;)
I guess it 'll take a day or two.
Yiannis.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version