PlankResult pl_LockFreeLinkedListElement_Destroy (PlankLockFreeLinkedListElementRef p) { PlankResult result; PlankMemoryRef m; result = PlankResult_OK; m = pl_MemoryGlobal(); if ((result = pl_LockFreeLinkedListElement_DeInit (p)) != PlankResult_OK) goto exit; result = pl_Memory_Free (m, p); exit: return result; }
PlankResult pl_SimpleMapElement_Destroy (PlankSimpleMapElementRef p) { PlankResult result = PlankResult_OK; PlankMemoryRef m = pl_MemoryGlobal(); if (p == PLANK_NULL) { result = PlankResult_MemoryError; goto exit; } result = pl_Memory_Free (m, p); exit: return result; }
PlankResult pl_AtomicD_Destroy (PlankAtomicDRef p) { PlankResult result; PlankMemoryRef m; result = PlankResult_OK; m = pl_MemoryGlobal(); if ((result = pl_AtomicD_DeInit (p)) != PlankResult_OK) goto exit; result = pl_Memory_Free (m, p); exit: return result; }
PlankResult pl_SimpleMap_Destroy (PlankSimpleMapRef p) { PlankResult result; PlankMemoryRef m; result = PlankResult_OK; m = pl_MemoryGlobal(); if (p == PLANK_NULL) { result = PlankResult_MemoryError; goto exit; } if ((result = pl_SimpleMap_DeInit (p)) != PlankResult_OK) goto exit; result = pl_Memory_Free (m, p); exit: return result; }
PlankResult pl_AtomicI_Destroy (PlankAtomicIRef p) { PlankMemoryRef m = pl_MemoryGlobal(); return pl_Memory_Free (m, p); }
PlankResult pl_AtomicP_Destroy (PlankAtomicPRef p) { PlankMemoryRef m = pl_MemoryGlobal(); pl_Memory_Free (m, p); return PlankResult_OK; }