Example of mutex usage to protect shared access to stdio (printf). Note that this kind of protection is needed in case of Cortex-M0 MCU-s which use C microlib. Larger MCUs (like Cortex M3), however, use the C stdlib which already provides a mutex to protect access to stdio.

Dependencies:   mbed-rtos mbed

Committer:
icserny
Date:
Wed Feb 10 13:03:43 2016 +0000
Revision:
0:6d2b4755a904
First version

Who changed what in which revision?

UserRevisionLine numberNew contents of line
icserny 0:6d2b4755a904 1 http://mbed.org/users/mbed_official/code/mbed-rtos/#3d9d2b8b8f17