void ponyint_gc_destroy(gc_t* gc) { ponyint_objectmap_destroy(&gc->local); ponyint_actormap_destroy(&gc->foreign); if(gc->delta != NULL) { ponyint_deltamap_free(gc->delta); gc->delta = NULL; } }
void ponyint_gc_sendacquire(pony_ctx_t* ctx) { size_t i = HASHMAP_BEGIN; actorref_t* aref; while((aref = ponyint_actormap_next(&ctx->acquire, &i)) != NULL) { ponyint_actormap_removeindex(&ctx->acquire, i); pony_sendp(ctx, aref->actor, ACTORMSG_ACQUIRE, aref); } ponyint_actormap_destroy(&ctx->acquire); memset(&ctx->acquire, 0, sizeof(actormap_t)); }