Changeset 12761


Ignore:
Timestamp:
Mar 12, 2014, 6:09:20 PM (10 years ago)
Author:
hock@…
Message:

New System Queue:

The new System Queue already passes most tests that do not contain delayed calls.

[ But it's (abviously) not ready for productive use, yet. ]

Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/utility/logging/Logging.h

    r12060 r12761  
    9696  #define logging_stdout(x) std::cout << x << std::endl;
    9797
    98   static int __loglevel__ = 2; //default is info
    99 // static int __loglevel__ = 1; // XXX use higher log level
     98//   static int __loglevel__ = 2; //default is info
     99 static int __loglevel__ = 1; // XXX use higher log level
    100100
    101101  #define logging_trace(x)  {                                   logging_stdout(x);                }
  • source/ariba/utility/system/SystemEvent.h

    r6919 r12761  
    6464        // private class that accesses these variables. Therefore they are public for now.
    6565        ptime scheduledTime; //< time the event was originally given to the queue
     66        ptime deadline; //< time when the event should be executed  TODO Mario
    6667        uint32_t delayTime; //< time the event is scheduled at, or 0 if it is to be fired immediately
    6768        uint32_t remainingDelay; //< remaining delay time for sleeping
  • tests/SystemQueue-tests.cc

    r12758 r12761  
    6262    sysq.cancel();
    6363   
     64    // XXX weg, wenn das join klappt!!
     65    usleep(100);
     66   
    6467    EXPECT_FALSE( sysq.isRunning() );
    6568}
     
    8992    void Check()
    9093    {
     94        // XXX
     95        cout << "### Check ### "<< endl;
     96
    9197        checkmark = true;
    9298    }
     
    108114                break;
    109115           
    110             cout << "/// sleeping for " << SLEEP_TIME << " microseconds ..." << endl;
     116            cout << "### sleeping for " << SLEEP_TIME << " microseconds ..." << endl;
    111117            usleep(SLEEP_TIME);
    112118        }
Note: See TracChangeset for help on using the changeset viewer.