# HG changeset patch # User Merten Sach # Date 1316598552 -7200 # Node ID 2d2d942afbaf1d3aa583c551eef640615e4746a3 # Parent dd40181fd8bb5c6d9fc391f0ba23bb3033191503 changed free back to request to master diff -r dd40181fd8bb -r 2d2d942afbaf VPThread_lib.c --- a/VPThread_lib.c Mon Sep 19 18:45:14 2011 +0200 +++ b/VPThread_lib.c Wed Sep 21 11:49:12 2011 +0200 @@ -294,7 +294,17 @@ void VPThread__free( void *ptrToFree, VirtProcr *animPr ) { - return VMS__free_in_lib(ptrToFree, animPr); + //return VMS__free_in_lib(ptrToFree, animPr); + VPThdSemReq reqData; + + //the semantic request data is on the stack and disappears when this + // call returns -- it's guaranteed to remain in the VP's stack for as + // long as the VP is suspended. + reqData.reqType = free_req; + reqData.ptrToFree = ptrToFree; + + + VMS__send_sem_request(&reqData, animPr); }