GA::kit v0.3
G&A's in-house C++ application framework
Loading...
Searching...
No Matches
sigslot Namespace Reference

Namespaces

namespace  detail
 
namespace  trait
 

Classes

class  connection
 
class  connection_blocker
 
struct  observer_base
 
class  scoped_connection
 
class  signal_base
 

Typedefs

using group_id = std::int32_t
 
using observer_st = observer_base< detail::null_mutex >
 
using observer = observer_base< std::mutex >
 
template<typename... T>
using signal_st = signal_base< detail::null_mutex, T... >
 
template<typename... T>
using signal = signal_base< std::mutex, T... >
 

Typedef Documentation

◆ group_id

using sigslot::group_id = typedef std::int32_t

A group_id is used to identify a group of slots

◆ observer

using sigslot::observer = typedef observer_base<std::mutex>

Specialization of observer_base to be used in multi-threaded contexts.

◆ observer_st

Specialization of observer_base to be used in single threaded contexts.

◆ signal

template<typename... T>
using sigslot::signal = typedef signal_base<std::mutex, T...>

Specialization of signal_base to be used in multi-threaded contexts. Slot connection, disconnection and signal emission are thread-safe.

Recursive signal emission and emission cycles are supported too.

◆ signal_st

template<typename... T>
using sigslot::signal_st = typedef signal_base<detail::null_mutex, T...>

Specialization of signal_base to be used in single threaded contexts. Slot connection, disconnection and signal emission are not thread-safe. The performance improvement over the thread-safe variant is not impressive, so this is not very useful.