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/3862/head
parent
05403d4231
commit
ab4da40e81
|
|
@ -331,6 +331,10 @@ public:
|
||||||
virtual ~Thread();
|
virtual ~Thread();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
/* disallow copy constructor and assignment operators */
|
||||||
|
Thread(const Thread&);
|
||||||
|
Thread& operator=(const Thread&);
|
||||||
|
|
||||||
// Required to share definitions without
|
// Required to share definitions without
|
||||||
// delegated constructors
|
// delegated constructors
|
||||||
void constructor(osPriority priority=osPriorityNormal,
|
void constructor(osPriority priority=osPriorityNormal,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue