]> git.saurik.com Git - apple/xnu.git/blobdiff - iokit/Kernel/IOConditionLock.cpp
xnu-792.25.20.tar.gz
[apple/xnu.git] / iokit / Kernel / IOConditionLock.cpp
index f8fec3768c6f5a4c94e268b5d1024e607316902c..7be2d21ba53f510dd7c31dcbc1efce966e8427f3 100644 (file)
@@ -36,7 +36,7 @@
 #define super OSObject
 OSDefineMetaClassAndStructors(IOConditionLock, OSObject)
 
-bool IOConditionLock::initWithCondition(int inCondition, bool inIntr = true)
+bool IOConditionLock::initWithCondition(int inCondition, bool inIntr)
 {
     if (!super::init())
         return false;
@@ -52,12 +52,12 @@ bool IOConditionLock::initWithCondition(int inCondition, bool inIntr = true)
     return cond_interlock && sleep_interlock;
 }
 
-IOConditionLock *IOConditionLock::withCondition(int condition, bool intr = true)
+IOConditionLock *IOConditionLock::withCondition(int condition, bool intr)
 {
     IOConditionLock *me = new IOConditionLock;
 
     if (me && !me->initWithCondition(condition, intr)) {
-        me->free();
+        me->release();
         return 0;
     }