diff VMS.h @ 228:125f0f90a0d3

integrating holistic model in common ancestor - not finished yet
author Nina Engelhardt <nengel@mailbox.tu-berlin.de>
date Thu, 15 Mar 2012 18:28:29 +0100
parents 5c475c4b7b49
children 0ee1a3c8972d
line diff
     1.1 --- a/VMS.h	Thu Mar 15 06:36:37 2012 -0700
     1.2 +++ b/VMS.h	Thu Mar 15 18:28:29 2012 +0100
     1.3 @@ -49,6 +49,9 @@
     1.4  typedef void     (*TopLevelFnPtr)  ( void *, SlaveVP * ); //initData, animSlv
     1.5  typedef void       TopLevelFn      ( void *, SlaveVP * ); //initData, animSlv
     1.6  typedef void     (*ResumeSlvFnPtr) ( SlaveVP *, void * );
     1.7 +      //=========== MEASUREMENT STUFF ==========
     1.8 +        MEAS__Insert_Counter_Handler
     1.9 +      //========================================
    1.10  
    1.11  //============================ HW Dependent Fns ================================
    1.12  
    1.13 @@ -105,6 +108,12 @@
    1.14   };
    1.15  //SchedSlot
    1.16  
    1.17 + enum VPtype {
    1.18 +     Slave = 1, //default
    1.19 +     Master,
    1.20 +     Shutdown
    1.21 + };
    1.22 + 
    1.23  /*WARNING: re-arranging this data structure could cause Slv switching
    1.24   *         assembly code to fail -- hard-codes offsets of fields
    1.25   */
    1.26 @@ -130,7 +139,10 @@
    1.27         MEAS__Insert_Meas_Fields_into_Slave;
    1.28        //========================================
    1.29     
    1.30 -   float64      createPtInSecs;  //have space but don't use on some configs
    1.31 +   enum VPtype type;
    1.32 +   int         numTimesAssigned;
    1.33 +       
    1.34 +   float64     createPtInSecs;  //have space but don't use on some configs
    1.35   };
    1.36  //SlaveVP
    1.37  
    1.38 @@ -177,6 +189,7 @@
    1.39         MEAS__Insert_Malloc_Meas_Fields_into_MasterEnv;
    1.40         MEAS__Insert_Plugin_Meas_Fields_into_MasterEnv;
    1.41         MEAS__Insert_System_Meas_Fields_into_MasterEnv;
    1.42 +       MEAS__Insert_Counter_Meas_Fields_into_MasterEnv;
    1.43        //==========================================
    1.44   }
    1.45  MasterEnv;
    1.46 @@ -238,6 +251,9 @@
    1.47  void
    1.48  VMS_SS__start_the_work_then_wait_until_done();
    1.49  
    1.50 +SlaveVP* 
    1.51 +VMS_SS__create_shutdown_slave();
    1.52 +
    1.53  void
    1.54  VMS_SS__shutdown();
    1.55