rtos: Prevent Thread class from being copied

Make the copy constructor and assignment operator private to prevent
them from being used.
pull/4025/head
Russ Butler 2017-03-06 11:54:17 -06:00 committed by Anna Bridge
parent 1bec2f2d5d
commit fe4867ea89
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,