-/*
- * Obtain a semaphore lock to begin a critical section.
- * but only if no one else has one
- */
-int try_critical_section(int which_one)
-{
- /* For all types of critical sections except those listed here,
- * ensure nobody ever tries to do a critical section within a
- * transaction; this could lead to deadlock.
- */
+// Obtain a semaphore lock to begin a critical section, but only if no one else has one
+int try_critical_section(int which_one) {
+ // For all types of critical sections except those listed here,
+ // ensure nobody ever tries to do a critical section within a
+ // transaction; this could lead to deadlock.