Skip to content
Snippets Groups Projects
Commit 06ad9313 authored by John Hodge's avatar John Hodge
Browse files

Fix unbounded door thread creation

parent 93984133
Branches
No related merge requests found
...@@ -48,6 +48,7 @@ bool gbDoor_LockThreadStarted; ...@@ -48,6 +48,7 @@ bool gbDoor_LockThreadStarted;
// === CODE === // === CODE ===
void* Door_Lock(void* Unused __attribute__((unused))) void* Door_Lock(void* Unused __attribute__((unused)))
{ {
gbDoor_LockThreadStarted = true;
while(1) while(1)
{ {
sem_wait(&gDoor_UnlockSemaphore); sem_wait(&gDoor_UnlockSemaphore);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment