<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<br>
Le 09/02/2012 10:36, Michael Schnell a écrit :
<blockquote cite="mid:4F3393AE.8020600@lumino.de" type="cite">On
02/09/2012 09:22 AM, Antonio Fortuny wrote:
<br>
<blockquote type="cite">
<br>
<br>
TEventObject in syncobjs unit does exactly the job.
<br>
</blockquote>
<br>
The documentation on TEventObject suggest that it is for
synchronizing multiple threads of a single process and not for
synchronizing multiple independently running processes.
<br>
</blockquote>
I've made a test on Win32 and the TEventObject is blocking system
wide. Three instances af the same program are running (which means
three independent processes) using the same named TEventObject. The
first acquiring te event locks it for the two other whichever is the
blocking process. This means that the TEventObject uses is managed
by the OS at the kernel level.<br>
I'll port the name test on WIN64 and Linux64 to see what happens.<br>
The documentation says:<br>
"<i>Other threads that wish to be notified of these events should
create their own instances of <var>TEventObject</var> with the
same name, and wait for events to arrive</i>." which in turn
suggests that any thread insterested in a names event must have its
own instance of the object <br>
Anyway, it appears to work.<br>
<br>
Antonio.<br>
<br>
<blockquote cite="mid:4F3393AE.8020600@lumino.de" type="cite">
<br>
-Michael
<br>
<br>
--
<br>
_______________________________________________
<br>
Lazarus mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a>
<br>
<a class="moz-txt-link-freetext" href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a>
<br>
<br>
</blockquote>
</body>
</html>