Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: TYBLE16_simple_data_logger TYBLE16_MP3_Air
Diff: features/cellular/framework/device/CellularStateMachine.h
- Revision:
- 1:9db0e321a9f4
- Parent:
- 0:5b88d5760320
--- a/features/cellular/framework/device/CellularStateMachine.h	Tue Dec 17 23:23:45 2019 +0000
+++ b/features/cellular/framework/device/CellularStateMachine.h	Tue Dec 31 06:02:27 2019 +0000
@@ -22,9 +22,11 @@
 #include "CellularCommon.h"
 #include "PlatformMutex.h"
 
+#ifdef MBED_CONF_RTOS_PRESENT
 namespace rtos {
 class Thread;
 }
+#endif
 
 namespace mbed {
 
@@ -159,6 +161,12 @@
     void send_event_cb(cellular_connection_status_t status);
     void change_timeout(const int &timeout);
 
+private:
+
+#ifdef MBED_CONF_RTOS_PRESENT
+    rtos::Thread *_queue_thread;
+#endif
+
     CellularDevice &_cellularDevice;
     CellularState _state;
     CellularState _next_state;
@@ -168,7 +176,6 @@
 
     CellularNetwork &_network;
     events::EventQueue &_queue;
-    rtos::Thread *_queue_thread;
 
     const char *_sim_pin;
     int _retry_count;