Fwd: callbackEnter:, callbackLeave: addGCRoot: removeGCRoot:

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Fwd: callbackEnter:, callbackLeave: addGCRoot: removeGCRoot:

johnmci
 
Ok, if I get the vm-dev mailing list correct then in fact people can  
see the note, since [hidden email] (old) bounces  
it back


Begin forwarded message:

> From: John M McIntosh <[hidden email]>
> Date: March 30, 2009 11:00:54 AM PDT (CA)
> To: squeak vm <[hidden email]>
> Subject: callbackEnter:, callbackLeave: addGCRoot: removeGCRoot:
> Reply-To: [hidden email]
>
> Ok, a few years back we managed to add in the following logic from  
> Andreas, however it was not exposed by sqVirtualMachine.h
>
> now do we want to remove it? Or leave in place.
>
> If this is replaced by Alien what's the magic equivalent for doing  
> the callbackEnter and callbackLeave since I"m doing that in the
> Objective-C squeak proxy logic.
>
> /* New methods for proxy version 1.? */
>
>
> /* callbackEnter: Re-enter the interpreter loop for a callback.
> Arguments:
> callbackID: Pointer to a location receiving the callback ID
> used in callbackLeave
> Returns: True if successful, false otherwise */
> sqInt (*callbackEnter)(sqInt *callbackID);
>
> /* callbackLeave: Leave the interpreter from a previous callback
> Arguments:
> callbackID: The ID of the callback received from callbackEnter()
> Returns: True if succcessful, false otherwise. */
> sqInt (*callbackLeave)(sqInt  callbackID);
>
> /* addGCRoot: Add a variable location to the garbage collector.
> The contents of the variable location will be updated accordingly.
> Arguments:
> varLoc: Pointer to the variable location
> Returns: True if successful, false otherwise. */
> sqInt (*addGCRoot)(sqInt *varLoc);
>
> /* removeGCRoot: Remove a variable location from the garbage  
> collector.
> Arguments:
> varLoc: Pointer to the variable location
> Returns: True if successful, false otherwise.
> */
> sqInt (*removeGCRoot)(sqInt *varLoc);
>
>
> --
> =
> =
> =
> =
> =
> ======================================================================
> John M. McIntosh <[hidden email]>
> Corporate Smalltalk Consulting Ltd.  http://
> www.smalltalkconsulting.com
> =
> =
> =
> =
> =
> ======================================================================
>
>
>

--
=
=
=
========================================================================
John M. McIntosh <[hidden email]>
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
=
=
=
========================================================================