Commit b8cf41c
committed
Drop
Given we regularly run into issues arising from mixing sync and async
contexts, we here simplify our `EventQueue` implementation by avoiding
to use `Condvar::wait_while` (which parks the current thread) and rather
simply us `block_on` on our `next_event_async` method.Condvar and use block_on for wait_next_event
1 parent ae98bef commit b8cf41c
2 files changed
+7
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
290 | | - | |
291 | 290 | | |
292 | 291 | | |
293 | 292 | | |
| |||
299 | 298 | | |
300 | 299 | | |
301 | 300 | | |
302 | | - | |
303 | | - | |
| 301 | + | |
304 | 302 | | |
305 | 303 | | |
306 | 304 | | |
| |||
310 | 308 | | |
311 | 309 | | |
312 | 310 | | |
313 | | - | |
314 | | - | |
315 | 311 | | |
316 | 312 | | |
317 | 313 | | |
| |||
327 | 323 | | |
328 | 324 | | |
329 | 325 | | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | 326 | | |
337 | 327 | | |
338 | 328 | | |
339 | 329 | | |
340 | 330 | | |
341 | 331 | | |
342 | | - | |
343 | 332 | | |
344 | 333 | | |
345 | 334 | | |
| |||
383 | 372 | | |
384 | 373 | | |
385 | 374 | | |
386 | | - | |
387 | | - | |
| 375 | + | |
388 | 376 | | |
389 | 377 | | |
390 | 378 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
749 | 749 | | |
750 | 750 | | |
751 | 751 | | |
752 | | - | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
753 | 756 | | |
754 | 757 | | |
755 | 758 | | |
| |||
0 commit comments