| parrotcode: Shared PMC Reference | |
| Contents | PMCs |

src/pmc/sharedref.pmc - Shared PMC Reference

The vtable functions for the SharedRef base class.
This class wraps locking around PMC access.
All methods not present below get a default body autogenerated inside Parrot::Pmc2c.
Currently all access is locked. When we have a non-copying GC allocator we can relax that a bit.

void init_pmc(PMC *init)share() on the aggregate,
which calls share() on its contents - so getting aggregate members only yields shared PMCsSharedRef is currently not enabled so we shouldn't leak unshared PMCs into different threads.void share()void mark()void set_pmc(PMC *other)*other.PMC *get_pmc()void destroy()
Initial revision by leo 2004.01.14.
|
|
|