@@ -55,12 +55,12 @@ [FDs release]; [super dealloc]; } -- (void)_addFileDescriptor: (int)fd - withEvents: (short)events +- (void)OF_addFileDescriptor: (int)fd + withEvents: (short)events { struct pollfd *FDsCArray = [FDs cArray]; size_t i, count = [FDs count]; BOOL found = NO; @@ -76,12 +76,12 @@ struct pollfd p = { fd, events | POLLERR, 0 }; [FDs addItem: &p]; } } -- (void)_removeFileDescriptor: (int)fd - withEvents: (short)events +- (void)OF_removeFileDescriptor: (int)fd + withEvents: (short)events { struct pollfd *FDsCArray = [FDs cArray]; size_t i, nFDs = [FDs count]; for (i = 0; i < nFDs; i++) { @@ -94,43 +94,43 @@ break; } } } -- (void)_addFileDescriptorForReading: (int)fd -{ - [self _addFileDescriptor: fd - withEvents: POLLIN]; -} - -- (void)_addFileDescriptorForWriting: (int)fd -{ - [self _addFileDescriptor: fd - withEvents: POLLOUT]; -} - -- (void)_removeFileDescriptorForReading: (int)fd -{ - [self _removeFileDescriptor: fd - withEvents: POLLIN]; -} - -- (void)_removeFileDescriptorForWriting: (int)fd -{ - [self _removeFileDescriptor: fd - withEvents: POLLOUT]; +- (void)OF_addFileDescriptorForReading: (int)fd +{ + [self OF_addFileDescriptor: fd + withEvents: POLLIN]; +} + +- (void)OF_addFileDescriptorForWriting: (int)fd +{ + [self OF_addFileDescriptor: fd + withEvents: POLLOUT]; +} + +- (void)OF_removeFileDescriptorForReading: (int)fd +{ + [self OF_removeFileDescriptor: fd + withEvents: POLLIN]; +} + +- (void)OF_removeFileDescriptorForWriting: (int)fd +{ + [self OF_removeFileDescriptor: fd + withEvents: POLLOUT]; } - (BOOL)observeWithTimeout: (double)timeout { void *pool = objc_autoreleasePoolPush(); struct pollfd *FDsCArray; size_t i, nFDs, realEvents = 0; - [self _processQueue]; + [self OF_processQueue]; - if ([self _processCache]) { + if ([self OF_processCache]) { objc_autoreleasePoolPop(pool); return YES; } objc_autoreleasePoolPop(pool);