From: aj <aj...@oi...> - 2002-02-28 20:08:57
|
At 11:15 AM 28/02/2002 +0100, you wrote: > > are callbacks from different threads than the main allegro thread ? > > does this mean i should be treating callbacks as if they where from other > > threads.. ie locking data that they use with critical sections ? > >Regular Allegro callbacks are called from different threads than the primary >thread (and there is no proper synchronization mechanism in 4.0.0), so they >shouldn't do anything more complicated than setting some flags. I don't know >how your Win32 drag-n-drop callback works, but I suspect it is called from >the window thread, which would make it subject to the same provisions as >those of regular Allegro callbacks. my small bowl of noodles (code) has just become a large bowl of spagetti...(code+lib). it might be time to abandon allegro :( aj. |