Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Files update (squash)
  • Loading branch information
0xc0170 committed Jun 7, 2016
commit ac581611871e2a97f26881617f761945e96e07fc
6 changes: 3 additions & 3 deletions docs/Development/thread_safety.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ No synchronization provided. A caller must protect invocation of this API by a c

RTOS C++ API provides the Mutex class which is used to make drivers **Thread Safe**.

For more information see ``[rtos/rtos/Mutex.h](https://github.com/mbedmicro/mbed/blob/master/rtos/rtos/Mutex.h)``.
For more information see ``(rtos/rtos/Mutex.h)[https://github.com/mbedmicro/mbed/blob/master/rtos/rtos/Mutex.h]``.

### Atomics

Atomic operations are provided by mbed which can be used to make code **Interrupt Safe**. This is the preferred method of synchronization if code needs to be used both from threads and interrupts, since there is very low overhead and no latency decrease.

For more information see ``[hal/api/critical.h](https://github.com/mbedmicro/mbed/blob/master/hal/api/critical.h)``.
For more information see ``(hal/api/critical.h)[https://github.com/mbedmicro/mbed/blob/master/hal/api/critical.h]``.

### Critical section

Expand All @@ -70,4 +70,4 @@ Warning: Do not perform time consuming operations inside critical sections. Thi

Warning: Do not invoke any standard lib or RTOS functions within a critical section, it could result in a hard fault. Due to SVC calls that RTOS does. A critical section requires a code to be running in the privileged mode.

For more information see ``[hal/api/critical.h](https://github.com/mbedmicro/mbed/blob/master/hal/api/critical.h)``.
For more information see ``(hal/api/critical.h)[https://github.com/mbedmicro/mbed/blob/master/hal/api/critical.h]``.