Ignore:
Timestamp:
Jul 3, 2009, 8:52:01 AM (15 years ago)
Author:
Christoph Mayer
Message:

locking für enter method neu

Location:
source/ariba/utility/system
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/utility/system/SystemQueue.cpp

    r4701 r4702  
    113113void SystemQueue::enterMethod(){
    114114        // TODO: omnet case and delay scheduler
    115         directScheduler.queueMutex.lock();
     115        directScheduler.queueMutex.enter();
    116116}
    117117
    118118void SystemQueue::leaveMethod(){
    119119        // TODO: omnet case and delay scheduler
    120         directScheduler.queueMutex.unlock();
     120        directScheduler.queueMutex.leave();
    121121}
    122122
     
    224224}
    225225
     226void SystemQueue::QueueThread::enter(){
     227        queueMutex.lock();
     228}
     229
     230void SystemQueue::QueueThread::leave(){
     231        queueMutex.leave();
     232}
     233
     234
    226235//***************************************************************
    227236
  • source/ariba/utility/system/SystemQueue.h

    r4699 r4702  
    180180                bool isEmpty();
    181181                void insert( const SystemEvent& event, uint32_t delay );
     182                void enter();
     183                void leave();
    182184
    183185        protected:
Note: See TracChangeset for help on using the changeset viewer.