On Fri, 2011-09-02 at 10:36 +0200, Florian Paul Schmidt wrote:
On 09/01/2011 10:37 PM, Harry van Haaren wrote:
[...]
Coupled with a poor man's garbage collection
scheme using
boost::shared_ptr's this was a quite quick way to hack up jass. There's
no need to introduce new types if you want to do something new. Actually
there's only exactly one type that gets passed through the command
ringbuffer and that is boost::function<void(void)>. See e.g.
Careful doing this, note that dropping the last shared_ptr to an object
is NOT real-time (it calls delete), even if destroying the actual object
is.
-dr