UV module

ScopedLoop

RAII wrapper for a libuv event loop.

ScopedLoop

#include <icy/loop.h>

RAII wrapper for a libuv event loop. Automatically closes and deletes the loop on destruction.

Public Attributes

ReturnNameDescription
Loop *loop

loop

Loop * loop

Public Methods

ReturnNameDescription
ScopedLoop inline
operator Loop * const inlineImplicit conversion to Loop* for use with libuv APIs.
Loop *get const inlineReturns the raw event loop pointer.
ScopedLoopDeleted constructor.
ScopedLoopDeleted constructor.

ScopedLoop

inline

inline ScopedLoop()

operator Loop *

const inline

inline operator Loop *() const

Implicit conversion to Loop* for use with libuv APIs.


get

const inline

inline Loop * get() const

Returns the raw event loop pointer.

Returns

Pointer to the underlying uv_loop_t.


ScopedLoop

ScopedLoop(const ScopedLoop &) = delete

Deleted constructor.


ScopedLoop

ScopedLoop(ScopedLoop &&) = delete

Deleted constructor.