downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

EvWatcher::__construct> <EvWatcher
[edit] Last updated: Fri, 17 May 2013

view this page in

EvWatcher::clear

(PECL ev >= 0.2.0)

EvWatcher::clearClear watcher pending status

Beschreibung

public int EvWatcher::clear ( void )

If the watcher is pending, this method clears its pending status and returns its revents bitset(as if its callback was invoked). If the watcher isn't pending it does nothing and returns 0 .

Sometimes it can be useful to "poll" a watcher instead of waiting for its callback to be invoked, which can be accomplished with this function.

Parameter-Liste

Diese Funktion hat keine Parameter.

Rückgabewerte

In case if the watcher is pending, returns revents bitset as if the watcher callback had been invoked. Otherwise returns 0 .



add a note add a note User Contributed Notes EvWatcher::clear - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites