Am 18.09.2014 11:03 schrieb "Michael Schnell" <mschn...@lumino.de>: > > On 09/18/2014 10:32 AM, Xiangrong Fang wrote: >> >> >> >> >> I don't quite understand the logic or difference between critical section >> >> and events. > > > They have nothing in common. > > TCriticalSection is a Semaphore (see Wikipedia) > > An event is a callback procedure -> https://en.wikipedia.org/wiki/Callback_%28computer_programming%29 > > Sorry, but you will not be able to do such a project unless you understand such basic computer science primitives.
You are wrong. A critical section is a mutex and an event in this context is a binary semaphore. Regards, Sven
-- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus