rtos: Prevent Thread class from being copied

Make the copy constructor and assignment operator private to prevent
them from being used.
pull/3862/head
Russ Butler 2017-03-06 11:54:17 -06:00
parent 05403d4231
commit ab4da40e81
1 changed files with 4 additions and 0 deletions

View File

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