Trivial elimination of trailing whitespace.
Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
/*
*---------------------------------------------------------------------
- *
+ *
* MXUser_SetInPanic --
* Notify the locking system that a panic is occurring.
*
/*
*---------------------------------------------------------------------
- *
+ *
* MXUser_InPanic --
* Is the caller in the midst of a panic?
*
*
* Recursive locks are rank checked only upon their first acquisition...
* just like MX locks.
- *
+ *
* Exclusive locks will have a second entry added into the tracking
* system but will immediately panic due to the run time checking - no
* (real) harm done.
void
MXUserBasicStatsSample(MXUserBasicStats *stats,
uint64 value);
-
+
void MXUserDumpBasicStats(MXUserBasicStats *stats,
MXUserHeader *header);
}
-/*
+/*
*-----------------------------------------------------------------------------
- *
+ *
* MXUser_IsCurThreadHolding --
*
* Is the read-write lock held in the mode queried?
- *
+ *
* Results:
* TRUE Yes
* FALSE No
*
* Side effects:
* None
- *
+ *
*-----------------------------------------------------------------------------
- */
-
-Bool
+ */
+
+Bool
MXUser_IsCurThreadHoldingRWLock(MXUserRWLock *lock, // IN:
uint32 queryType) // IN:
{
switch (queryType) {
case MXUSER_RW_FOR_READ:
return myContext->state == RW_LOCKED_FOR_READ;
-
+
case MXUSER_RW_FOR_WRITE:
return myContext->state == RW_LOCKED_FOR_WRITE;
-
+
case MXUSER_RW_LOCKED:
return myContext->state != RW_UNLOCKED;
default:
Panic("%s: unknown query type %d\n", __FUNCTION__, queryType);
- }
+ }
}
status = WaitForSingleObject(*sema, msecWait);
- switch (status) {
+ switch (status) {
case WAIT_OBJECT_0: // The down (decrement) occurred
*downOccurred = TRUE;
err = 0;
* MXUser_UpSemaphore --
*
* Perform an up (V; verhogen; "increase") operation on a semaphore.
- *
+ *
* Results:
* The semaphore count is incremented. Any thread waiting on the
* semaphore is awoken.
uint32 numerator = 0;
uint32 denominator = 0;
- LogFixed_Base10(value, &numerator, &denominator);
+ LogFixed_Base10(value, &numerator, &denominator);
index = (BINS_PER_DECADE * numerator) / denominator;
}