Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 25, 2011, 8:22:36 PM (14 years ago)
Author:
scheusso
Message:

merging network6 into trunk

Location:
code/trunk
Files:
2 edited
1 copied

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/src/libraries/core/Thread.cc

    r7284 r8327  
    2626 *
    2727 */
     28
     29#if defined(ORXONOX_PLATFORM_WINDOWS)
     30  #include "ThreadWin.cc"
     31#elif defined(ORXONOX_PLATFORM_UNIX)
     32
    2833
    2934#include "Thread.h"
     
    9196        while( !stopThread )
    9297        {
    93             //this->executorMutex_->lock();
     98            this->executorMutex_->lock();
    9499            ExecutorPtr executor = this->executor_;
    95             //this->executorMutex_->unlock();
     100            this->executorMutex_->unlock();
    96101            if( executor )
    97102            {
     
    108113                this->workerThread_->yield();
    109114            }
    110             //this->stopThreadMutex_->lock();
     115            this->stopThreadMutex_->lock();
    111116            stopThread = this->stopThread_;
    112             //this->stopThreadMutex_->unlock();
     117            this->stopThreadMutex_->unlock();
    113118        }
    114119    }
     
    127132    }
    128133}
     134
     135#endif
Note: See TracChangeset for help on using the changeset viewer.