X-Git-Url: http://www.lcore.org/git/lcore.git/blobdiff_plain/94dd0df9f67acf39e8e85e44ade8021a98c417a1..e14f985630dc9b0edad92d591fbede30928cda37:/lmessages.pas diff --git a/lmessages.pas b/lmessages.pas index 0dc159b..1b7db62 100755 --- a/lmessages.pas +++ b/lmessages.pas @@ -3,12 +3,22 @@ which is included in the package ----------------------------------------------------------------------------- } +//this unit provides a rough approximation of windows messages on linux +//it is usefull for multithreaded applications on linux to communicate back to +//the main lcore thread +//This unit is *nix only, on windows you should use the real thing + unit lmessages; //windows messages like system based on lcore tasks interface uses pgtypes,sysutils,bsearchtree,strings,syncobjs; + +{$if (fpc_version < 2) or ((fpc_version=2) and ((fpc_release < 2) or ((fpc_release = 2) and (fpc_patch < 2)) ))} + {$error this code is only supported under fpc 2.2.2 and above due to bugs in the eventobject code in older versions} +{$endif} + type lparam=taddrint; wparam=taddrint;