internal override ReturnCode DetachFromWaitSet(WaitSet waitset) { ReturnCode result = DDS.ReturnCode.AlreadyDeleted; ReportStack.Start(); lock (this) { if (this.rlReq_isAlive) { if (waitSetList.Remove(waitset)) { result = waitset.wlReq_DetachGuardCondition(this); } else { result = DDS.ReturnCode.PreconditionNotMet; } } } // if (result != DDS.ReturnCode.Ok) { // OS_REPORT(OS_ERROR, // "Condition::detach_waitset", 0, // "detach failed with %s", // DDS::OpenSplice::Utils::returnCodeToString(result)); // } return(result); }
internal override ReturnCode DetachFromWaitSet(WaitSet waitset) { ReturnCode result = DDS.ReturnCode.AlreadyDeleted; ReportStack.Start(); lock (this) { if (this.rlReq_isAlive) { if (waitSetList.Remove(waitset)) { result = waitset.wlReq_DetachGuardCondition(this); } else { result = DDS.ReturnCode.PreconditionNotMet; } } } return(result); }