Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > VMS_impls > VMS__MC_shared_impl
comparison VMS.h @ 262:aa79134dbc88
merge
| author | Sean Halle <seanhalle@yahoo.com> |
|---|---|
| date | Wed, 24 Oct 2012 00:00:22 -0700 |
| parents | 4c7414df4f0e |
| children | 094ad1bdeaec |
comparison
equal
deleted
inserted
replaced
| 121:864a3ff86623 | 122:74c4d8890c77 |
|---|---|
| 280 VMS_SS__cleanup_at_end_of_shutdown(); | 280 VMS_SS__cleanup_at_end_of_shutdown(); |
| 281 | 281 |
| 282 | 282 |
| 283 //============== =============== | 283 //============== =============== |
| 284 | 284 |
| 285 inline SlaveVP * | 285 SlaveVP * |
| 286 VMS_int__create_slaveVP( TopLevelFnPtr fnPtr, void *dataParam ); | 286 VMS_int__create_slaveVP( TopLevelFnPtr fnPtr, void *dataParam ); |
| 287 #define VMS_PI__create_slaveVP VMS_int__create_slaveVP | 287 #define VMS_PI__create_slaveVP VMS_int__create_slaveVP |
| 288 #define VMS_WL__create_slaveVP VMS_int__create_slaveVP | 288 #define VMS_WL__create_slaveVP VMS_int__create_slaveVP |
| 289 | 289 |
| 290 //Use this to create processor inside entry point & other places outside | 290 //Use this to create processor inside entry point & other places outside |
| 291 // the VMS system boundary (IE, don't animate with a SlaveVP or MasterVP) | 291 // the VMS system boundary (IE, don't animate with a SlaveVP or MasterVP) |
| 292 SlaveVP * | 292 SlaveVP * |
| 293 VMS_ext__create_slaveVP( TopLevelFnPtr fnPtr, void *dataParam ); | 293 VMS_ext__create_slaveVP( TopLevelFnPtr fnPtr, void *dataParam ); |
| 294 | 294 |
| 295 inline SlaveVP * | 295 SlaveVP * |
| 296 VMS_int__create_slaveVP_helper( SlaveVP *newSlv, TopLevelFnPtr fnPtr, | 296 VMS_int__create_slaveVP_helper( SlaveVP *newSlv, TopLevelFnPtr fnPtr, |
| 297 void *dataParam, void *stackLocs ); | 297 void *dataParam, void *stackLocs ); |
| 298 | 298 |
| 299 inline void | 299 void |
| 300 VMS_int__reset_slaveVP_to_TopLvlFn( SlaveVP *slaveVP, TopLevelFnPtr fnPtr, | 300 VMS_int__reset_slaveVP_to_TopLvlFn( SlaveVP *slaveVP, TopLevelFnPtr fnPtr, |
| 301 void *dataParam); | 301 void *dataParam); |
| 302 | 302 |
| 303 inline void | 303 void |
| 304 VMS_int__point_slaveVP_to_OneParamFn( SlaveVP *slaveVP, void *fnPtr, | 304 VMS_int__point_slaveVP_to_OneParamFn( SlaveVP *slaveVP, void *fnPtr, |
| 305 void *param); | 305 void *param); |
| 306 | 306 |
| 307 inline void | 307 void |
| 308 VMS_int__point_slaveVP_to_TwoParamFn( SlaveVP *slaveVP, void *fnPtr, | 308 VMS_int__point_slaveVP_to_TwoParamFn( SlaveVP *slaveVP, void *fnPtr, |
| 309 void *param1, void *param2); | 309 void *param1, void *param2); |
| 310 | 310 |
| 311 void | 311 void |
| 312 VMS_int__dissipate_slaveVP( SlaveVP *slaveToDissipate ); | 312 VMS_int__dissipate_slaveVP( SlaveVP *slaveToDissipate ); |
| 328 #define VMS_PI__give_sem_env_for VMS_int__give_sem_env_for | 328 #define VMS_PI__give_sem_env_for VMS_int__give_sem_env_for |
| 329 #define VMS_SS__give_sem_env_for VMS_int__give_sem_env_for | 329 #define VMS_SS__give_sem_env_for VMS_int__give_sem_env_for |
| 330 //No WL version -- not safe! if use in WL, be sure data rd & wr is stable | 330 //No WL version -- not safe! if use in WL, be sure data rd & wr is stable |
| 331 | 331 |
| 332 | 332 |
| 333 inline void | 333 void |
| 334 VMS_int__get_master_lock(); | 334 VMS_int__get_master_lock(); |
| 335 | 335 |
| 336 #define VMS_int__release_master_lock() _VMSMasterEnv->masterLock = UNLOCKED | 336 #define VMS_int__release_master_lock() _VMSMasterEnv->masterLock = UNLOCKED |
| 337 | 337 |
| 338 inline uint32_t | 338 uint32_t |
| 339 VMS_int__randomNumber(); | 339 VMS_int__randomNumber(); |
| 340 | 340 |
| 341 //============== Request Related =============== | 341 //============== Request Related =============== |
| 342 | 342 |
| 343 void | 343 void |
| 344 VMS_int__suspend_slaveVP_and_send_req( SlaveVP *callingSlv ); | 344 VMS_int__suspend_slaveVP_and_send_req( SlaveVP *callingSlv ); |
| 345 | 345 |
| 346 inline void | 346 void |
| 347 VMS_WL__add_sem_request_in_mallocd_VMSReqst( void *semReqData, SlaveVP *callingSlv ); | 347 VMS_WL__add_sem_request_in_mallocd_VMSReqst( void *semReqData, SlaveVP *callingSlv ); |
| 348 | 348 |
| 349 inline void | 349 void |
| 350 VMS_WL__send_sem_request( void *semReqData, SlaveVP *callingSlv ); | 350 VMS_WL__send_sem_request( void *semReqData, SlaveVP *callingSlv ); |
| 351 | 351 |
| 352 void | 352 void |
| 353 VMS_WL__send_create_slaveVP_req( void *semReqData, SlaveVP *reqstingSlv ); | 353 VMS_WL__send_create_slaveVP_req( void *semReqData, SlaveVP *reqstingSlv ); |
| 354 | 354 |
| 355 void inline | 355 void |
| 356 VMS_WL__send_dissipate_req( SlaveVP *prToDissipate ); | 356 VMS_WL__send_dissipate_req( SlaveVP *prToDissipate ); |
| 357 | 357 |
| 358 inline void | 358 void |
| 359 VMS_WL__send_VMSSem_request( void *semReqData, SlaveVP *callingSlv ); | 359 VMS_WL__send_VMSSem_request( void *semReqData, SlaveVP *callingSlv ); |
| 360 | 360 |
| 361 VMSReqst * | 361 VMSReqst * |
| 362 VMS_PI__take_next_request_out_of( SlaveVP *slaveWithReq ); | 362 VMS_PI__take_next_request_out_of( SlaveVP *slaveWithReq ); |
| 363 //#define VMS_PI__take_next_request_out_of( slave ) slave->requests | 363 //#define VMS_PI__take_next_request_out_of( slave ) slave->requests |
| 364 | 364 |
| 365 //inline void * | 365 //void * |
| 366 //VMS_PI__take_sem_reqst_from( VMSReqst *req ); | 366 //VMS_PI__take_sem_reqst_from( VMSReqst *req ); |
| 367 #define VMS_PI__take_sem_reqst_from( req ) req->semReqData | 367 #define VMS_PI__take_sem_reqst_from( req ) req->semReqData |
| 368 | 368 |
| 369 void inline | 369 void |
| 370 VMS_PI__handle_VMSSemReq( VMSReqst *req, SlaveVP *requestingSlv, void *semEnv, | 370 VMS_PI__handle_VMSSemReq( VMSReqst *req, SlaveVP *requestingSlv, void *semEnv, |
| 371 ResumeSlvFnPtr resumeSlvFnPtr ); | 371 ResumeSlvFnPtr resumeSlvFnPtr ); |
| 372 | 372 |
| 373 //======================== MEASUREMENT ====================== | 373 //======================== MEASUREMENT ====================== |
| 374 uint64 | 374 uint64 |
| 376 uint32 | 376 uint32 |
| 377 VMS_WL__give_num_plugin_animations(); | 377 VMS_WL__give_num_plugin_animations(); |
| 378 | 378 |
| 379 | 379 |
| 380 //========================= Utilities ======================= | 380 //========================= Utilities ======================= |
| 381 inline char * | 381 char * |
| 382 VMS_int__strDup( char *str ); | 382 VMS_int__strDup( char *str ); |
| 383 | 383 |
| 384 | 384 |
| 385 //========================= Probes ======================= | 385 //========================= Probes ======================= |
| 386 #include "Services_Offered_by_VMS/Measurement_and_Stats/probes.h" | 386 #include "Services_Offered_by_VMS/Measurement_and_Stats/probes.h" |
