[VM][Win32] Can plugin DLL use synchronizedSignalSemaphoreWithIndex()?

Andreas Raab Andreas.Raab at gmx.de
Sun Aug 25 15:16:43 UTC 2002


David,

I think you don't need this any longer. A while ago John fixed various
of the issues due to external synchronization in the VM and the Win32
code predates these changes. If I'm not mistaken, there is no problem
with just using "signalSemaphoreWithIndex".

Cheers,
  - Andreas

> -----Original Message-----
> From: squeak-dev-admin at lists.squeakfoundation.org 
> [mailto:squeak-dev-admin at lists.squeakfoundation.org] On 
> Behalf Of David T. Lewis
> Sent: Sunday, August 25, 2002 3:53 PM
> To: squeak-dev at lists.squeakfoundation.org
> Subject: [VM][Win32] Can plugin DLL use 
> synchronizedSignalSemaphoreWithIndex()?
> 
> 
> 
> I am writing a plugin for Win32 which 
> Interpreter>>signalSemaphoreWithIndex:
> to notify Squeak of an external event. I want the signal to 
> be sent from
> a Win32 thread, and I would like the plugin to be compiled as 
> an external
> DLL.
> 
> In order to have my plugin play nice with other threaded parts of the
> Win32 VM, I want to use the existing 
> synchronizedSignalSemaphoreWithIndex()
> function, which is declared in sqWin32Window.c and is 
> compiled into the
> main VM executable. But when I try to build a DLL with a 
> reference to the
> external function synchronizedSignalSemaphoreWithIndex(), I get an
> undefined reference (of course).
> 
> Am I right in thinking that a plugin must be compiled internally in
> order to be able to call synchronizedSignalSemaphoreWithIndex()?
> 
> Hopefully this is a dumb question and I'm missing something obvious.
> 
> Thanks,
> 
> Dave
> 
> 




More information about the Squeak-dev mailing list