几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】about rendering using a thread (http://www.dimcax.com/hust/showthread.php?t=14988)

yang686526 2009-05-04 03:22 PM

【转帖】about rendering using a thread
 
about rendering using a thread
drawer thread
hello,
i have a question about a drawer thread used in the sample, odamfcapp.
i was thinking that the drawer thread had to stop whenever it took a signal.
so i read the codes in abortregen().
but i couldn't understand.
just by sending 'wm_close' message to the drawer thread and waiting for objects to respond, is it ok?
i think that the thread should be able to stop while it is drawing.
but your codes doesn't seem to like to do that.
could you explain how it works?
sorry for bothering you with just like these things.
last edited by ktwinkle; 16th may 2006 at 10:59 pmfff">.
quote:
originally posted by ktwinkle
could you explain how it works?
hi,
it's pretty difficult... that's one of the reasons why drawer thread is removed in dd 1.15.
the idea is to allow only one thread to access a db at the same time. 2 types of synchronization objects are used: messages and event. please, ask concrete question. what's your problem with drawer thread ?


所有的时间均为北京时间。 现在的时间是 04:19 PM.