comparison VMS.c @ 56:420a09d3f32a

changed sem-lib interface for dissipating to send_dissipate_req
author Me
date Thu, 04 Nov 2010 17:57:39 -0700
parents f59cfa31a579
children 85b731b290f8
comparison
equal deleted inserted replaced
22:0c3bd2780395 26:f5d6e507b8f2
443 * never returns from this call, but instead the virtual processor's trace 443 * never returns from this call, but instead the virtual processor's trace
444 * gets suspended in this call and all the virt processor's state disap- 444 * gets suspended in this call and all the virt processor's state disap-
445 * pears -- making that suspend the last thing in the virt procr's trace. 445 * pears -- making that suspend the last thing in the virt procr's trace.
446 */ 446 */
447 void 447 void
448 VMS__dissipate_procr( VirtProcr *procrToDissipate ) 448 VMS__send_dissipate_req( VirtProcr *procrToDissipate )
449 { VMSReqst req; 449 { VMSReqst req;
450 450
451 req.reqType = dissipate; 451 req.reqType = dissipate;
452 req.nextReqst = procrToDissipate->requests; 452 req.nextReqst = procrToDissipate->requests;
453 procrToDissipate->requests = &req; 453 procrToDissipate->requests = &req;
599 *If the dissipated processor is the sole (remaining) owner of VMS__malloc'd 599 *If the dissipated processor is the sole (remaining) owner of VMS__malloc'd
600 * state, then that state gets freed (or sent to recycling) as a side-effect 600 * state, then that state gets freed (or sent to recycling) as a side-effect
601 * of dis-owning it. 601 * of dis-owning it.
602 */ 602 */
603 void 603 void
604 VMS__handle_dissipate_reqst( VirtProcr *animatingPr ) 604 VMS__dissipate_procr( VirtProcr *animatingPr )
605 { 605 {
606 //dis-own all locations owned by this processor, causing to be freed 606 //dis-own all locations owned by this processor, causing to be freed
607 // any locations that it is (was) sole owner of 607 // any locations that it is (was) sole owner of
608 //TODO: implement VMS__malloc system, including "give up ownership" 608 //TODO: implement VMS__malloc system, including "give up ownership"
609 609