[fpc-pascal] C thread callbacks

2010-02-17 Thread Wimpie Nortje
Hi I have a C library that uses threads. These threads use callbacks into my pascal for events. What must happen for the pascal events handlers to be able to safely access the main thread's resources? This is the same situation where I would use TThread.Synchronize if the threads were

Re: [fpc-pascal] C thread callbacks

2010-02-17 Thread Jonas Maebe
On 17 Feb 2010, at 09:41, Wimpie Nortje wrote: I have a C library that uses threads. These threads use callbacks into my pascal for events. What must happen for the pascal events handlers to be able to safely access the main thread's resources? The same as what must happen for C event