mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
Clarify that run loop watchers are NOT retained, and are responsible for removing themselves from the run loop when they have finished watching for events.
This commit is contained in:
parent
824fcb8e65
commit
b55ee6b0c5
2 changed files with 6 additions and 4 deletions
|
@ -191,8 +191,9 @@ typedef enum {
|
|||
/** Adds a watcher to the receiver ... the watcher is used to monitor events
|
||||
* of the specified type which are associted with the event handle data and
|
||||
* it operates in the specified run loop modes.<br />
|
||||
* The watcher remains in place until a corresponding call to
|
||||
* -removeEvent:type:forMode:all: is made.
|
||||
* The watcher is not retained, but remains in place until a corresponding
|
||||
* call to -removeEvent:type:forMode:all: is made. If is the watchers
|
||||
* responsibility to ensure that it is removed from the run loop safely.
|
||||
*/
|
||||
- (void) addEvent: (void*)data
|
||||
type: (RunLoopEventType)type
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue