Skip to content

Commit

Permalink
unrevert io changes
Browse files Browse the repository at this point in the history
Signed-off-by: Jade Abraham <[email protected]>
  • Loading branch information
jabraham17 committed Jan 6, 2025
1 parent ee3acb7 commit 1e35ac1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
13 changes: 13 additions & 0 deletions third-party/qthread/README
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,16 @@ index 2ac887ed..2312c954 100644
#define QTHREAD_FASTLOCK_SETUP() \
do { \
```

```
--- a/src/io.c
+++ b/src/io.c
@@ -74,7 +74,6 @@ static void qt_blocking_subsystem_internal_freemem(void) { /*{{{*/
static void *qt_blocking_subsystem_proxy_thread(void *Q_UNUSED(arg)) { /*{{{*/
while (!atomic_load_explicit(&proxy_exit, memory_order_relaxed)) {
if (qt_process_blocking_call()) { break; }
- MACHINE_FENCE;
}
atomic_fetch_sub_explicit(&io_worker_count, 1, memory_order_relaxed);
pthread_exit(NULL);
```
1 change: 0 additions & 1 deletion third-party/qthread/qthread-src/src/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ static void qt_blocking_subsystem_internal_freemem(void) { /*{{{*/
static void *qt_blocking_subsystem_proxy_thread(void *Q_UNUSED(arg)) { /*{{{*/
while (!atomic_load_explicit(&proxy_exit, memory_order_relaxed)) {
if (qt_process_blocking_call()) { break; }
MACHINE_FENCE;
}
atomic_fetch_sub_explicit(&io_worker_count, 1, memory_order_relaxed);
pthread_exit(NULL);
Expand Down

0 comments on commit 1e35ac1

Please sign in to comment.