Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

External use of cbEditor

<< < (6/6)

Game_Ender:

--- Quote from: dje on December 08, 2006, 10:59:37 am ---Do you mean creating a custom event in my panel class and using AddPendingEvent/ProcessEvent from my worker thread (called Search method in included in panel class for now) ?

Finally, I thought that wxWidgets was the quasi-unique multi-threaded ui framework.
When I read this post remarks, I doubt. Does any one have a sure answer on this point ??
--- End quote ---

Yes, but always read the documentation.  When ever a user searches just spawn off a work thread.  Then use wxEvtHandler::AddPendingEvent/wxPostEvent to post an event to the main thread that another result is ready.  Do not use ProcessEvent it is not thread safe.

dje:

--- Quote ---Yes, but always read the documentation.
--- End quote ---
Sorry; I read the doc after posting the message and found my answer. :?
The thread sample was useful too.

Dje

Navigation

[0] Message Index

[*] Previous page

Go to full version