[Lazarus] PostMessage return value

Sven Barth pascaldragon at googlemail.com
Thu Sep 18 11:36:44 CEST 2014


Am 18.09.2014 11:03 schrieb "Michael Schnell" <mschnell at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20140918/47386193/attachment-0003.html>


More information about the Lazarus mailing list