Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Unified Diff: fusl/src/thread/vmlock.c

Issue 1714623002: [fusl] clang-format fusl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: headers too Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: fusl/src/thread/vmlock.c
diff --git a/fusl/src/thread/vmlock.c b/fusl/src/thread/vmlock.c
index 75f3cb76190fe4e8796997e7c3d29af80fb36792..f05fbe0bcfbc73362ba95882c394527d76bfd40e 100644
--- a/fusl/src/thread/vmlock.c
+++ b/fusl/src/thread/vmlock.c
@@ -2,20 +2,17 @@
static volatile int vmlock[2];
-void __vm_wait()
-{
- int tmp;
- while ((tmp=vmlock[0]))
- __wait(vmlock, vmlock+1, tmp, 1);
+void __vm_wait() {
+ int tmp;
+ while ((tmp = vmlock[0]))
+ __wait(vmlock, vmlock + 1, tmp, 1);
}
-void __vm_lock()
-{
- a_inc(vmlock);
+void __vm_lock() {
+ a_inc(vmlock);
}
-void __vm_unlock()
-{
- if (a_fetch_add(vmlock, -1)==1 && vmlock[1])
- __wake(vmlock, -1, 1);
+void __vm_unlock() {
+ if (a_fetch_add(vmlock, -1) == 1 && vmlock[1])
+ __wake(vmlock, -1, 1);
}

Powered by Google App Engine
This is Rietveld 408576698