LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Patch for PostDeferredCallToThreadAndWait called from realtime thread

Calling PostDeferredCallToThreadAndWait from another thread that is realtime will almost hang your application. Almost because it actually completes, but takes a *VERY* long time. This patch fixes it, at least in the way I think it is supposed to be (actually you should really be using events with WaitForMultipleObjects / pthread_cond_wait here, cause this is just plain bad programming, but thats another thing).
I also sign off all rights to this code so it can be freely used in the next version of CVI.

Axel Gembe
SeCa GmbH

Message Edited by DerAgo on 03-17-2008 05:28 AM
0 Kudos
Message 1 of 1
(3,071 Views)