changeset 21:2d2d942afbaf DistibutedMalloc

changed free back to request to master
author Merten Sach <msach@mailbox.tu-berlin.de>
date Wed, 21 Sep 2011 11:49:12 +0200
parents dd40181fd8bb
children
files VPThread_lib.c
diffstat 1 files changed, 11 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/VPThread_lib.c	Mon Sep 19 18:45:14 2011 +0200
     1.2 +++ b/VPThread_lib.c	Wed Sep 21 11:49:12 2011 +0200
     1.3 @@ -294,7 +294,17 @@
     1.4  void
     1.5  VPThread__free( void *ptrToFree, VirtProcr *animPr )
     1.6   { 
     1.7 -    return VMS__free_in_lib(ptrToFree, animPr);
     1.8 +    //return VMS__free_in_lib(ptrToFree, animPr);
     1.9 +    VPThdSemReq  reqData;
    1.10 +
    1.11 +      //the semantic request data is on the stack and disappears when this
    1.12 +      // call returns -- it's guaranteed to remain in the VP's stack for as
    1.13 +      // long as the VP is suspended.
    1.14 +   reqData.reqType            = free_req; 
    1.15 +   reqData.ptrToFree          = ptrToFree;
    1.16 +
    1.17 +
    1.18 +   VMS__send_sem_request(&reqData, animPr);
    1.19   }
    1.20  
    1.21