Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / Threads and events and strange comments in event.cpp

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. Threads and events and strange comments in event.cpp
#3637
Posted by: chot 2004-03-29 01:55:27
I've been told that threads and event handlers cant be combined in any easy way, and i cant find any documentation about the subject.
but in event.cpp line 825 it says (wxWidgets version 2.4.2):
"When using GUI threads, a non main
 threads can send an event and process it itself"
if this is true, why isn't documentet and how do i combine eventhandlers and threads?
Message2. Re: Threads and events and strange comments in event.cpp
#3666
Posted by: KaReL 2004-03-31 09:51:05
Threads cannot process events... That's the main idea... It will be solved in 3.0, so I am told... but I don't think it will have an easy solution.

PostEvent from a thread, it gets captured by the main thread and send those back to your thread in some way... That's how you could possibly achieve this
------------------------
Website: www.KaReLs0ft.be
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
¥288.00 ·
 
 
¥1,580.00 ·
 
 
¥470.00 ·
 
 
¥317.00 ·
 
 
¥489.00 ·
 
 
¥1,068.00 ·
© Mon 2024-11-11  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0