Przeglądaj źródła

Make MyName() const.


git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@49 d34b734f-a00e-4b39-a726-e4eeb87269ab
adeniz_1
adeniz 10 lat temu
rodzic
commit
806a2b8278
2 zmienionych plików z 2 dodań i 2 usunięć
  1. 1
    1
      threading.cpp
  2. 1
    1
      threading.hpp

+ 1
- 1
threading.cpp Wyświetl plik

@@ -113,7 +113,7 @@ bool Thread::isRunning() { return RunningFlag; }
bool Thread::isBad() { return BadFlag; } // Return BadFlag state.

const string Thread::MyFault() { return BadWhat; } // Return exception Bad fault if any.
const string Thread::MyName() { return MyThreadName; } // Return the instance name if any.
const string Thread::MyName() const { return MyThreadName; } // Return the instance name if any.
const ThreadType& Thread::MyType() { return MyThreadType; } // Return the instance Thread Type.
const ThreadState& Thread::MyState() { return (*MyThreadState); } // Thread state for this instance.


+ 1
- 1
threading.hpp Wyświetl plik

@@ -244,7 +244,7 @@ class Thread {
bool isBad(); // Return the Bad flag state.
const string MyFault(); // Return exception Bad fault if any.

const string MyName(); // The thread's name.
const string MyName() const; // The thread's name.
const ThreadType& MyType(); // Thread type for this thread.
const ThreadState& MyState(); // Returns the current thread state.
const ThreadState& CurrentThreadState(); // Returns the current thread state.

Ładowanie…
Anuluj
Zapisz