mirror of https://github.com/ARMmbed/mbed-os.git
rtos: Prevent Thread class from being copied
Make the copy constructor and assignment operator private to prevent them from being used.pull/4025/head
parent
1bec2f2d5d
commit
fe4867ea89
|
@ -331,6 +331,10 @@ public:
|
|||
virtual ~Thread();
|
||||
|
||||
private:
|
||||
/* disallow copy constructor and assignment operators */
|
||||
Thread(const Thread&);
|
||||
Thread& operator=(const Thread&);
|
||||
|
||||
// Required to share definitions without
|
||||
// delegated constructors
|
||||
void constructor(osPriority priority=osPriorityNormal,
|
||||
|
|
Loading…
Reference in New Issue