Skip to content

Commit

Permalink
gcc9: Added missing increment in __gthread_mutex_trylock().
Browse files Browse the repository at this point in the history
  • Loading branch information
salass00 authored and olasoder-work committed Jan 29, 2021
1 parent e6cc3ae commit 833bb88
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gcc/9/patches/0025-Add-amigaos-thread-model.patch
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ new file mode 100644
index 0000000000000000000000000000000000000000..41adbdc3324156bee31731da8f0da92e819ffdd8
--- /dev/null
+++ b/libgcc/gthr-amigaos-native.c
@@ -0,0 +1,1016 @@
@@ -0,0 +1,1017 @@
+/**
+ * This is the native implementation of gcc threads abstraction. The advantage
+ * over the pthreads one is that no pthreads.library is needed.
Expand Down Expand Up @@ -729,6 +729,7 @@ index 0000000000000000000000000000000000000000..41adbdc3324156bee31731da8f0da92e
+ iexec->ReleaseSemaphore (&mx->u.i.sem);
+ return EBUSY;
+ }
+ mx->u.i.acquired++;
+ return 0;
+ }
+ return EBUSY;
Expand Down

0 comments on commit 833bb88

Please sign in to comment.