[fpc-devel] procedure ... message(); in Linux
Michael Schnell
mschnell at lumino.de
Mon Mar 1 10:25:37 CET 2010
On 02/26/2010 10:21 AM, Mattias Gaertner wrote:
>
> PostMessage is threadsafe, dispatch is not.
>
Not only thread-save, but thread traversing, which is the proper
function of the message delivering library service.
Seemingly the function names are wisely chose (regarding the work of a
parcel service that uses a store-and foreword warehouse):
Dispatch() performs the local (i.e. within the same thread) delivery to
the final recipient. This is to be done by the library itself (the
parcel service agent).
PostMessage() performs giving the message to the library to have it
transport it to the main thread (the remote location)., This is to be
done by the user software (the client of the parcel service.
-Michael
More information about the fpc-devel
mailing list