Commit 9db89dc
committed
Call evthread_use_pthreads() on startup (#8258)
Summary:
libevent2 is not thread-safe without this.
- `[err] evmap.c:779: Assertion fdinfo->idxplus1 == i + 1 failed in
event_changelist_remove_all_`
- #8230
Pull Request resolved: #8258
Reviewed By: fugalh
Differential Revision: D8822279
Pulled By: fredemmott
fbshipit-source-id: 77365718fb4defee5c07eb9eb7a1da728cc019461 parent 101d324 commit 9db89dc
2 files changed
Lines changed: 16 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | | - | |
| 17 | + | |
17 | 18 | | |
18 | | - | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
29 | | - | |
| 30 | + | |
30 | 31 | | |
31 | | - | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
122 | 127 | | |
123 | 128 | | |
124 | 129 | | |
| |||
1743 | 1748 | | |
1744 | 1749 | | |
1745 | 1750 | | |
1746 | | - | |
| 1751 | + | |
1747 | 1752 | | |
| 1753 | + | |
| 1754 | + | |
| 1755 | + | |
| 1756 | + | |
| 1757 | + | |
1748 | 1758 | | |
1749 | 1759 | | |
1750 | 1760 | | |
| |||
0 commit comments