Skip to content

Commit

Permalink
Split flags from bit field which might lose bits between threads
Browse files Browse the repository at this point in the history
  • Loading branch information
d3x0r committed Feb 2, 2024
1 parent 7422c59 commit 235b927
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/timerlib/timers.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,10 @@ struct threads_tag
//BIT_FIELD bLock : 1;
//BIT_FIELD bSleeping : 1;
//BIT_FIELD bWakeWhileRunning : 1;
BIT_FIELD bRemovedWhileRunning : 1;
BIT_FIELD bLocal : 1;
volatile BIT_FIELD bReady : 1;
BIT_FIELD bStarted : 1;
BIT_FIELD bRemovedWhileRunning;
BIT_FIELD bLocal;
volatile BIT_FIELD bReady;
volatile BIT_FIELD bStarted;
} flags;
//struct threads_tag *next, **me;
CTEXTSTR pFile;
Expand Down

0 comments on commit 235b927

Please sign in to comment.