UV module

ScopedLoop

RAII wrapper for a libuv event loop.

#include <icy/loop.h>

struct ScopedLoop

Defined in src/base/include/icy/loop.h:77

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

Public Attributes

ReturnNameDescription
Loop *loop

loop

Loop * loop

Type: Loop *

Defined in src/base/include/icy/loop.h:79

Public Methods

ReturnNameDescription
ScopedLoop inline
~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.
ScopedLoop &operator=Deleted assignment operator.
ScopedLoopDeleted constructor.
ScopedLoop &operator=Deleted assignment operator.

ScopedLoop

inline

inline ScopedLoop()

Defined in src/base/include/icy/loop.h:81


~ScopedLoop

inline

inline ~ScopedLoop()

Defined in src/base/include/icy/loop.h:86


operator Loop *

const inline

inline operator Loop *() const

Defined in src/base/include/icy/loop.h:95

Implicit conversion to Loop* for use with libuv APIs.


get

const inline

inline Loop * get() const

Defined in src/base/include/icy/loop.h:99

Returns the raw event loop pointer.

Returns

Pointer to the underlying uv_loop_t.


ScopedLoop

ScopedLoop(const ScopedLoop &) = delete

Defined in src/base/include/icy/loop.h:101

Deleted constructor.


operator=

ScopedLoop & operator=(const ScopedLoop &) = delete

Defined in src/base/include/icy/loop.h:102

Deleted assignment operator.


ScopedLoop

ScopedLoop(ScopedLoop &&) = delete

Defined in src/base/include/icy/loop.h:103

Deleted constructor.


operator=

ScopedLoop & operator=(ScopedLoop &&) = delete

Defined in src/base/include/icy/loop.h:104

Deleted assignment operator.