File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 29
29
#include " mbed_rtx_conf.h"
30
30
#include " platform/Callback.h"
31
31
#include " platform/mbed_toolchain.h"
32
+ #include " platform/NonCopyable.h"
32
33
#include " rtos/Semaphore.h"
33
34
#include " rtos/Mutex.h"
34
35
@@ -69,7 +70,7 @@ namespace rtos {
69
70
* and underlying RTOS objects (static or dynamic RTOS memory pools are not being used).
70
71
* Additionally the stack memory for this thread will be allocated on the heap, if it wasn't supplied to the constructor.
71
72
*/
72
- class Thread {
73
+ class Thread : private mbed ::NonCopyable<Thread> {
73
74
public:
74
75
/* * Allocate a new thread without starting execution
75
76
@param priority initial priority of the thread function. (default: osPriorityNormal).
@@ -348,10 +349,6 @@ class Thread {
348
349
virtual ~Thread ();
349
350
350
351
private:
351
- /* disallow copy constructor and assignment operators */
352
- Thread (const Thread&);
353
- Thread& operator =(const Thread&);
354
-
355
352
// Required to share definitions without
356
353
// delegated constructors
357
354
void constructor (osPriority priority=osPriorityNormal,
You can’t perform that action at this time.
0 commit comments