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 14, 2025
1 parent 61e1a3d commit 0af59c4
Show file tree
Hide file tree
Showing 3 changed files with 138 additions and 71 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_a;
_Atomic long qlength_stealable_a;
struct _qt_threadqueue_private *next;
} qt_threadqueue_private_t;

Expand Down
Loading

0 comments on commit 0af59c4

Please sign in to comment.