Skip to content

Commit

Permalink
Make the tracked queuelengths atomic to stabilize them.
Browse files Browse the repository at this point in the history
  • Loading branch information
insertinterestingnamehere committed Jan 15, 2025
1 parent 722122f commit f6b7ac5
Show file tree
Hide file tree
Showing 3 changed files with 132 additions and 69 deletions.
4 changes: 2 additions & 2 deletions include/qt_spawncache.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ typedef struct _qt_threadqueue_node qt_threadqueue_node_t;
typedef struct _qt_threadqueue_private {
qt_threadqueue_node_t *head, *tail;
qt_threadqueue_node_t *on_deck;
long qlength;
long qlength_stealable;
_Atomic long qlength;
_Atomic long qlength_stealable;
struct _qt_threadqueue_private *next;
} qt_threadqueue_private_t;

Expand Down
Loading

0 comments on commit f6b7ac5

Please sign in to comment.