From ea81d2b8338d76aedaf6daa03c48b98a8112703e Mon Sep 17 00:00:00 2001 From: nannxnann <51177225+nannxnann@users.noreply.github.com> Date: Sun, 24 Jul 2022 21:42:11 +0800 Subject: [PATCH] Update linux-sync-4.md From "may be negative after `increment`" =>"may be negative after `decrement`" --- SyncPrim/linux-sync-4.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SyncPrim/linux-sync-4.md b/SyncPrim/linux-sync-4.md index 99adff0..34c1e08 100644 --- a/SyncPrim/linux-sync-4.md +++ b/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);