class WatchHandle

Defined at line 273 of file ../../src/developer/debug/shared/message_loop.h

Scopes watching a file handle. When the WatchHandle is destroyed, the MessageLoop will stop

watching the handle. Must only be destroyed on the thread where the MessageLoop is.

Invalid watch handles will have watching() return false.

Public Methods

void WatchHandle (const WatchHandle & )

Defined at line 282 of file ../../src/developer/debug/shared/message_loop.h

WatchHandle & operator= (const WatchHandle & other)

Defined at line 288 of file ../../src/developer/debug/shared/message_loop.h

bool watching ()

Defined at line 294 of file ../../src/developer/debug/shared/message_loop.h

void WatchHandle ()

Constructs a WatchHandle not watching anything.

Defined at line 359 of file ../../src/developer/debug/shared/message_loop.cc

void WatchHandle (MessageLoop * msg_loop, int id)

Constructor used by MessageLoop to make one that watches something.

Defined at line 360 of file ../../src/developer/debug/shared/message_loop.cc

void WatchHandle (WatchHandle && )

Defined at line 363 of file ../../src/developer/debug/shared/message_loop.cc

void ~WatchHandle ()

Stops watching.

Defined at line 369 of file ../../src/developer/debug/shared/message_loop.cc

WatchHandle & operator= (WatchHandle && other)

Defined at line 378 of file ../../src/developer/debug/shared/message_loop.cc

void StopWatching ()

Stops watching from the message loop.

If the handle is not watching, this doesn't do anything.

Defined at line 371 of file ../../src/developer/debug/shared/message_loop.cc

Friends

class MessageLoop