Changeset 32:1270a96f17ba in rrlib_thread


Ignore:
Timestamp:
22.06.2014 12:10:44 (5 years ago)
Author:
Max Reichardt <mreichardt@…>
Branch:
default
Children:
33:6fa10a099839, 35:7de42911b3a7
Phase:
public
Message:

Fix for single threaded mode (tThread::StoppingThreads() always returned true)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tThread.cpp

    r31 r32  
    513513bool tThread::StopThreads(bool query_only) 
    514514{ 
    515 #ifndef RRLIB_SINGLE_THREADED 
    516515  volatile static bool stopping_threadz = false; 
    517516  if (stopping_threadz || query_only)   // We don't do this twice 
     
    519518    return stopping_threadz; 
    520519  } 
     520#ifndef RRLIB_SINGLE_THREADED 
    521521  stopping_threadz = true; 
    522522  const char*(*GetLogDescription)() = GetLogDescriptionStatic; 
Note: See TracChangeset for help on using the changeset viewer.