Skip to content

KDBindings::ConnectionBlocker

A ConnectionBlocker is a convenient RAII-style mechanism for temporarily blocking a connection. More...

#include <signal.h>

Public Functions

Name
ConnectionBlocker(const ConnectionHandle & handle)
~ConnectionBlocker()

Detailed Description

1
class KDBindings::ConnectionBlocker;

A ConnectionBlocker is a convenient RAII-style mechanism for temporarily blocking a connection.

When a ConnectionBlocker is constructed, it will block the connection.

When it is destructed, it will return the connection to the blocked state it was in before the ConnectionBlocker was constructed.

Public Functions Documentation

function ConnectionBlocker

1
2
3
inline explicit ConnectionBlocker(
    const ConnectionHandle & handle
)

Exceptions:

Constructs a new ConnectionBlocker and blocks the connection this ConnectionHandle refers to.

function ~ConnectionBlocker

1
inline ~ConnectionBlocker()

Destructs the ConnectionBlocker and returns the connection into the blocked state it was in before the ConnectionBlocker was constructed.


Updated on 2022-04-12 at 00:03:54 +0000

Back to top