You.i Engine
YiThreadHandle.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2020. All rights reserved.
2 #ifndef _YI_THREAD_HANDLE_H_
3 #define _YI_THREAD_HANDLE_H_
4 
5 #define YI_THREAD_HANDLE_STORAGE_SIZE 8
6 
7 class CYIThreadHandlePriv;
8 
46 {
47 public:
49  explicit CYIThreadHandle(CYIThreadHandlePriv *pPrivObj);
50  CYIThreadHandle(const CYIThreadHandle &hnd);
52 
54 
55  friend bool operator==(const CYIThreadHandle &hnd1, const CYIThreadHandle &hnd2);
56  friend bool operator!=(const CYIThreadHandle &hnd1, const CYIThreadHandle &hnd2);
57 
58 private:
59  void *m_data[(YI_THREAD_HANDLE_STORAGE_SIZE + sizeof(void *) - 1) / sizeof(void *)]; // round up to multiple of sizeof(void *)
60 };
61 
64 #endif /* _YI_THREAD_HANDLE_H_ */
friend bool operator==(const CYIThreadHandle &hnd1, const CYIThreadHandle &hnd2)
friend bool operator!=(const CYIThreadHandle &hnd1, const CYIThreadHandle &hnd2)
CYIThreadHandle & operator=(const CYIThreadHandle &hnd)
#define YI_THREAD_HANDLE_STORAGE_SIZE
Definition: YiThreadHandle.h:5
Definition: YiThreadHandle.h:45