This repository was archived by the owner on Jul 19, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit 625a2d6
Address FileThreadPool race condition
I saw a couple ThreadErrors around popping from an empty queue in
bugsnag: this got introduced when I moved away from catching all
ThreadErrors. There's a race condition between checking that the queue
is empty & attempting to pop from it.
This change locks the pop operation with a mutex to prevent the race.1 parent 67b9919 commit 625a2d6
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | + | ||
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | - | ||
21 | + | ||
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
36 | + | ||
37 | + | ||
38 | + | ||
39 | + | ||
35 | 40 | | |
36 | 41 | | |
37 | 42 | | |
| |||
0 commit comments