| 35 | public: |
| 36 | // Thread ID type for single-threaded mode |
| 37 | class id { |
| 38 | private: |
| 39 | int mId; |
| 40 | friend class ThreadFake; |
| 41 | explicit id(int val) FL_NOEXCEPT : mId(val) {} |
| 42 | public: |
| 43 | id() FL_NOEXCEPT : mId(0) {} |
| 44 | bool operator==(const id& other) const FL_NOEXCEPT { return mId == other.mId; } |
| 45 | bool operator!=(const id& other) const FL_NOEXCEPT { return mId != other.mId; } |
| 46 | bool operator<(const id& other) const FL_NOEXCEPT { return mId < other.mId; } |
| 47 | bool operator<=(const id& other) const FL_NOEXCEPT { return mId <= other.mId; } |
| 48 | bool operator>(const id& other) const FL_NOEXCEPT { return mId > other.mId; } |
| 49 | bool operator>=(const id& other) const FL_NOEXCEPT { return mId >= other.mId; } |
| 50 | }; |
| 51 | |
| 52 | ThreadFake() = default; |
| 53 |
no outgoing calls
no test coverage detected