瀏覽代碼

Make MyName() const.


git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@49 d34b734f-a00e-4b39-a726-e4eeb87269ab
adeniz_1
adeniz 9 年之前
父節點
當前提交
806a2b8278
共有 2 個檔案被更改,包括 2 行新增2 行删除
  1. 1
    1
      threading.cpp
  2. 1
    1
      threading.hpp

+ 1
- 1
threading.cpp 查看文件

@@ -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 查看文件

@@ -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.

Loading…
取消
儲存