Searched refs:condition (Results 1 - 5 of 5) sorted by relevance

/darwin-on-arm/xnu/iokit/IOKit/
H A DIOConditionLock.h46 IOLock * cond_interlock; // condition var Simple lock
47 volatile int condition; member in class:IOConditionLock
55 static IOConditionLock *withCondition(int condition, bool inIntr = true);
56 virtual bool initWithCondition(int condition, bool inIntr = true);
65 virtual int setCondition(int condition);
67 virtual int lockWhen(int condition); // acquire lock when condition
68 virtual void unlockWith(int condition); // set condition & release lock
/darwin-on-arm/xnu/iokit/Kernel/
H A DIOConditionLock.cpp31 * AppleIOPSSafeCondLock.m. Lock object with exported condition variable,
53 condition = inCondition;
61 IOConditionLock *IOConditionLock::withCondition(int condition, bool intr) argument
65 if (me && !me->initWithCondition(condition, intr)) {
88 return condition;
93 int old = condition;
95 condition = inCondition;
96 thread_wakeup_one((void *) &condition);
105 thread_wakeup_one((void *) &condition);
121 condition
[all...]
/darwin-on-arm/xnu/bsd/hfs/hfscommon/headers/
H A DBTreesPrivate.h293 #define PanicIf( condition, message ) do { if ( condition != 0 ) DebugStr( message ); } while(0)
296 #define PanicIf( condition, message ) do { } while(0)
302 // Test for passed condition and return if true
303 #define M_ReturnErrorIf( condition, error ) do { if ( condition ) return( error ); } while(0)
/darwin-on-arm/xnu/tools/tests/xnu_quick_test/
H A Dpipes_tests.c89 static void die(int condition, const char *culprit) argument
91 if (condition) {
259 #define assert(condition, exit_status, ...) \
260 if (!(condition)) { \
400 static void die_on_error(int condition, const char *culprit) argument
402 assert(!condition, 1, "%s: %s error: %s.", progname, culprit,
417 static void die_on_invalid_value(int condition, argument
420 if (condition) {
/darwin-on-arm/xnu/bsd/vfs/
H A Dvfs_journal.c155 static void lock_condition(journal *jnl, boolean_t *condition, const char *condition_name);
156 static void wait_condition(journal *jnl, boolean_t *condition, const char *condition_name);
157 static void unlock_condition(journal *jnl, boolean_t *condition);
3615 * asynchronously, it could have encountered a condition
3651 * because we hold the 'flushing' condition variable for the duration
4113 * 'flush_aborted' is protected by the flushing condition... we need to
4114 * set it before dropping the condition so that it will be
4116 * aborted condition so that we can drop the 'flushing' condition
4119 * waiting for the 'flushing' condition t
4142 lock_condition(journal *jnl, boolean_t *condition, const char *condition_name) argument
4159 wait_condition(journal *jnl, boolean_t *condition, const char *condition_name) argument
4178 unlock_condition(journal *jnl, boolean_t *condition) argument
[all...]

Completed in 46 milliseconds