File tree Expand file tree Collapse file tree 6 files changed +14
-6
lines changed Expand file tree Collapse file tree 6 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 31
31
#include " rtx_lib.h"
32
32
#include " mbed_rtos1_types.h"
33
33
34
+ #include " platform/NonCopyable.h"
35
+
34
36
using namespace rtos ;
35
37
36
38
namespace rtos {
@@ -47,7 +49,7 @@ namespace rtos {
47
49
both for the mbed OS and underlying RTOS objects (static or dynamic RTOS memory pools are not being used).
48
50
*/
49
51
template <typename T, uint32_t queue_sz>
50
- class Mail {
52
+ class Mail : private mbed ::NonCopyable<Mail<T, queue_sz> > {
51
53
public:
52
54
/* * Create and Initialise Mail queue. */
53
55
Mail () { };
Original file line number Diff line number Diff line change 28
28
#include " cmsis_os2.h"
29
29
#include " mbed_rtos1_types.h"
30
30
#include " mbed_rtos_storage.h"
31
+ #include " platform/NonCopyable.h"
31
32
32
33
namespace rtos {
33
34
/* * \addtogroup rtos */
@@ -42,7 +43,7 @@ namespace rtos {
42
43
both for the mbed OS and underlying RTOS objects (static or dynamic RTOS memory pools are not being used).
43
44
*/
44
45
template <typename T, uint32_t pool_sz>
45
- class MemoryPool {
46
+ class MemoryPool : private mbed ::NonCopyable<MemoryPool<T, pool_sz> > {
46
47
public:
47
48
/* * Create and Initialize a memory pool. */
48
49
MemoryPool () {
Original file line number Diff line number Diff line change 27
27
#include " mbed_rtos1_types.h"
28
28
#include " mbed_rtos_storage.h"
29
29
30
+ #include " platform/NonCopyable.h"
31
+
30
32
namespace rtos {
31
33
/* * \addtogroup rtos */
32
34
/* * @{*/
@@ -38,7 +40,7 @@ namespace rtos {
38
40
Memory considerations: The mutex control structures will be created on current thread's stack, both for the mbed OS
39
41
and underlying RTOS objects (static or dynamic RTOS memory pools are not being used).
40
42
*/
41
- class Mutex {
43
+ class Mutex : private mbed ::NonCopyable<Mutex> {
42
44
public:
43
45
/* * Create and Initialize a Mutex object */
44
46
Mutex ();
Original file line number Diff line number Diff line change 28
28
#include " cmsis_os2.h"
29
29
#include " mbed_rtos_storage.h"
30
30
#include " platform/mbed_error.h"
31
+ #include " platform/NonCopyable.h"
31
32
#include " mbed_rtos1_types.h"
32
33
33
34
namespace rtos {
@@ -45,7 +46,7 @@ namespace rtos {
45
46
and underlying RTOS objects (static or dynamic RTOS memory pools are not being used).
46
47
*/
47
48
template <typename T, uint32_t queue_sz>
48
- class Queue {
49
+ class Queue : private mbed ::NonCopyable<Queue<T, queue_sz> > {
49
50
public:
50
51
/* * Create and initialize a message Queue. */
51
52
Queue () {
Original file line number Diff line number Diff line change 26
26
#include " cmsis_os2.h"
27
27
#include " rtx_lib.h"
28
28
#include " platform/Callback.h"
29
+ #include " platform/NonCopyable.h"
29
30
#include " platform/mbed_toolchain.h"
30
31
#include " mbed_rtos1_types.h"
31
32
@@ -79,7 +80,7 @@ namespace rtos {
79
80
Memory considerations: The timer control structures will be created on current thread's stack, both for the mbed OS
80
81
and underlying RTOS objects (static or dynamic RTOS memory pools are not being used).
81
82
*/
82
- class RtosTimer {
83
+ class RtosTimer : private mbed ::NonCopyable<RtosTimer> {
83
84
public:
84
85
/* * Create timer.
85
86
@param func function to be executed by this timer.
Original file line number Diff line number Diff line change 26
26
#include " cmsis_os2.h"
27
27
#include " mbed_rtos1_types.h"
28
28
#include " mbed_rtos_storage.h"
29
+ #include " platform/NonCopyable.h"
29
30
30
31
namespace rtos {
31
32
/* * \addtogroup rtos */
@@ -37,7 +38,7 @@ namespace rtos {
37
38
* Memory considerations: The semaphore control structures will be created on current thread's stack, both for the mbed OS
38
39
* and underlying RTOS objects (static or dynamic RTOS memory pools are not being used).
39
40
*/
40
- class Semaphore {
41
+ class Semaphore : private mbed ::NonCopyable<Semaphore> {
41
42
public:
42
43
/* * Create and Initialize a Semaphore object used for managing resources.
43
44
@param count number of available resources; maximum index value is (count-1). (default: 0).
You can’t perform that action at this time.
0 commit comments