changeset 13:ad931059d1c4 ML_lib

slight mods for DKU
author Sean Halle <seanhalle@yahoo.com>
date Sun, 06 Oct 2013 11:26:20 -0700
parents 3afbf8f9294b
children 9b0e4a786354 2d96f0ad026e
files PR__int.h langlets/PRServ__wrapper_library.h
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line diff
     1.1 --- a/PR__int.h	Thu Sep 26 07:26:08 2013 -0700
     1.2 +++ b/PR__int.h	Sun Oct 06 11:26:20 2013 -0700
     1.3 @@ -248,6 +248,9 @@
     1.4  PR_int__get_wrapper_lock();
     1.5  
     1.6  inline void
     1.7 +PR_int__get_master_lock();
     1.8 +
     1.9 +inline void
    1.10  PR_int__get_malloc_lock();
    1.11  
    1.12  #define PR_int__release_master_lock()  _PRTopEnv->masterLock  = UNLOCKED
     2.1 --- a/langlets/PRServ__wrapper_library.h	Thu Sep 26 07:26:08 2013 -0700
     2.2 +++ b/langlets/PRServ__wrapper_library.h	Sun Oct 06 11:26:20 2013 -0700
     2.3 @@ -37,9 +37,11 @@
     2.4  struct _DKUPiece
     2.5   {
     2.6     void        *payload;
     2.7 +   int32        dataFootprint; //Kbytes of cache space used by piece -- set by root piece maker and then by divider
     2.8     DKUPiece    *parent;
     2.9     DKUPiece   **children;
    2.10 -   int32        numChildren;
    2.11 +   int32        childFootprint; //set as suggestion by PR, reset by divider
    2.12 +   int32        numChildren; //set as suggestion by PR, reset by divider
    2.13     int32        numUnfinishedChildren;
    2.14     DKUInstance *dkuInstance;   //to get kernel and undivider
    2.15     void        *undividerInfo; //divider communicates to undivider
    2.16 @@ -133,7 +135,7 @@
    2.17  PRServ__DKU_make_empty_DKU_piece();
    2.18  
    2.19  DKUPiece *
    2.20 -PRServ__DKU_make_child_piece_from( pieceToDivide );
    2.21 +PRServ__DKU_make_child_piece_from( DKUPiece *pieceToDivide );
    2.22  
    2.23  void
    2.24  PRServ__DKU_set_root_piece_maker( DKUInstance *dkuInstance,