Sfoglia il codice sorgente

Update linux-sync-4.md

From "may be negative after `increment`"
=>"may be negative after `decrement`"
nannxnann 2 anni fa
parent
commit
ea81d2b833
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      SyncPrim/linux-sync-4.md

+ 1 - 1
SyncPrim/linux-sync-4.md

@@ -205,7 +205,7 @@ exit:
         return;
 ```
 
-For this moment the implementation of the `__mutex_fastpath_lock` function looks pretty easy. But the value of the `mutex->counter` may be negative after increment. In this case the: 
+For this moment the implementation of the `__mutex_fastpath_lock` function looks pretty easy. But the value of the `mutex->counter` may be negative after decrement. In this case the: 
 
 ```C
 fail_fn(v);