Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Weak pointers added in trunk

(Locked) Moderators: sean kris larsivi

Posted: 01/13/08 20:37:02

With changesets [3087] and [3088], threadsafe weak pointers were added to Tango. The functions to register your object are defined as follows.

extern (C) void  rt_attachDisposeEvent( Object obj, void delegate(Object) evt );
extern (C) void  rt_detachDisposeEvent( Object obj, void delegate(Object) evt );

Note that these functions priorly have been absent since it is only recently that they could be added in a threadsafe manner.

There are no responses to display.