From 4773e2721fbfcee12c3a3ae88852a35f1843cc43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roy=20Wellington=20=E2=85=A3?= Date: Sun, 8 May 2016 14:07:05 -0700 Subject: [PATCH] Fix some missing code block end markers Some of the code blocks in `SyncPrim/sync-4.md` were missing their end markers, causing normal text to be added to the code block. Fix that. --- SyncPrim/sync-4.md | 2 ++ contributors.md | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/SyncPrim/sync-4.md b/SyncPrim/sync-4.md index c37fa93..e1d0758 100644 --- a/SyncPrim/sync-4.md +++ b/SyncPrim/sync-4.md @@ -309,6 +309,7 @@ In all of these cases, the `__mutex_lock_common` function will acct like a `sema if (!mutex_is_locked(lock) && (atomic_xchg_acquire(&lock->count, 0) == 1)) goto skip_wait; +``` In a failure case the process which wants to acquire a lock will be added to the waiters list @@ -354,6 +355,7 @@ void __sched mutex_unlock(struct mutex *lock) { __mutex_fastpath_unlock(&lock->count, __mutex_unlock_slowpath); } +``` Implementation of the `__mutex_fastpath_unlock` function is very similar to the implementation of the `__mutex_fastpath_lock` function: diff --git a/contributors.md b/contributors.md index f7cbe93..67884d3 100644 --- a/contributors.md +++ b/contributors.md @@ -85,4 +85,5 @@ Thank you to all contributors: * [Piyush Pangtey](https://github.com/pangteypiyush) * [Alfred Agrell](https://github.com/Alcaro) * [Jakub Wilk](https://github.com/jwilk) -* [Justus Adam](https://github.com/JustusAdam) \ No newline at end of file +* [Justus Adam](https://github.com/JustusAdam) +* [Roy Wellington Ⅳ](https://github.com/thanatos)