Changeset 4699 for source/ariba/utility/system
- Timestamp:
- Jul 3, 2009, 8:43:09 AM (15 years ago)
- Location:
- source/ariba/utility/system
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/utility/system/EnterMethod.cpp
r4679 r4699 52 52 void EnterMethod::enter(){ 53 53 54 SystemQueue::instance()::enterMethod(); 55 56 /* 54 57 { boost::mutex::scoped_lock lock( waitForEnterMutex ); 55 58 … … 58 61 waitForEnter.wait( lock ); 59 62 } 63 */ 60 64 } 61 65 62 66 void EnterMethod::leave(){ 63 67 68 SystemQueue::instance()::leaveMethod(); 69 70 /* 64 71 { boost::mutex::scoped_lock lock( waitForLeaveMutex ); 65 72 waitForLeave.notify_one(); 66 73 } 74 */ 67 75 } 68 76 77 /* 69 78 void EnterMethod::handleSystemEvent( const SystemEvent& event ){ 70 79 … … 78 87 } 79 88 } 80 89 */ 81 90 }} // namespace ariba, common -
source/ariba/utility/system/EnterMethod.h
r4679 r4699 64 64 65 65 protected: 66 void handleSystemEvent(const SystemEvent& event);66 //void handleSystemEvent(const SystemEvent& event); 67 67 68 68 private: 69 /* 69 70 boost::condition_variable waitForEnter; 70 71 boost::condition_variable waitForLeave; … … 72 73 boost::mutex waitForEnterMutex; 73 74 boost::mutex waitForLeaveMutex; 74 75 */ 75 76 }; 76 77 -
source/ariba/utility/system/SystemQueue.cpp
r4483 r4699 111 111 } 112 112 113 void SystemQueue::enterMethod(){ 114 // TODO: omnet case and delay scheduler 115 directScheduler.lock(); 116 } 117 118 void SystemQueue::leaveMethod(){ 119 // TODO: omnet case and delay scheduler 120 directScheduler.unlock(); 121 } 122 113 123 //*************************************************************** 114 124 #ifndef UNDERLAY_OMNET -
source/ariba/utility/system/SystemQueue.h
r3690 r4699 80 80 class SystemQueue : public cSimpleModule { 81 81 #endif 82 82 83 use_logging_h(SystemQueue); 84 friend class EnterMethod; 83 85 public: 84 86 /** … … 137 139 138 140 protected: 141 142 /** 143 * Aqcuire the mutex 144 */ 145 void enterMethod(); 146 147 /** 148 * Leave the mutex 149 */ 150 void leaveMethod(); 139 151 140 152 /**
Note:
See TracChangeset
for help on using the changeset viewer.