Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!das-news2.harvard.edu!news2.near.net!howland.reston.ans.net!news.sprintlink.net!simtel!harbinger.cc.monash.edu.au!news.cs.su.oz.au!tmx!news.tmx.com.au!news
From: Philip Haynes <philip@oose.com.au>
Subject: Re: Asynchronous Initiation in SmallTalk (Parcplace)
Message-ID: <D8n67E.293@online.tmx.com.au>
Nntp-Posting-Host: 203.5.19.179
Sender: news@online.tmx.com.au (System Administrator)
Organization: The Message eXchange Pty Ltd
Date: Mon, 15 May 1995 22:52:25 GMT
References:  <3p5k2h$r1b@news1.is.net>
Lines: 21

plinck@is.net (Paul Linck) wrote:
>
> Anyone have any good ideas on how to initiate a SmallTalk message
> from a C++ module asynchronously?
> 
There are two mechanisms that can be done to use this. VW2.0 
provides C callbacks, but the mechanism which I have used is
the facility in VisualWorks to signal a Semaphore from
C. 

In VW you have a ST process which is waiting on a Semaphore. 
In C,  you receive the callback, fill a bufffer with data & 
trigger the Semaphore. The ST process can then read the buffer
and appropriately call a given ST message.

This approach worked well with reasonably high data transfer
rates.

Regards
Phil Haynes.
Object Oriented Pty Ltd.
