Quantcast
Channel: Keil Discussion Forum RSS Feed
Viewing all articles
Browse latest Browse all 3049

ARM: CMSIS-RTX does osThreadgetId() switching Threads?

$
0
0
Hi, Inside of the SEGGER emwin Library is a locking funktion wich takes care of being used by different threads. These locks are using a single binary semaphore. The pseudocode for the lock is something like: if (entrancecount == 0) { osSemaphoreWait(guisem, osWaitForever); taskidlock = osGetThreadId(); } else { if (taskidlock != osGetThreadId()) { osSemaphoreWait(guisem, osWaitForever); taskidlock = osGetThreadId(); } } This seems to be OK, bu

Viewing all articles
Browse latest Browse all 3049

Trending Articles