Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions demo/basic_demo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
// (thread-safe) and 'lite' (single-threaded) versions of signals.
// Therefore, vdk::lite::signal can be used instead of vdk::signal.

using vdk::signal;

namespace
{
void function(int arg)
Expand Down Expand Up @@ -52,7 +50,7 @@ class demo_class
void signals_basic_demo()
{
// Create a signal with no connected slots
signal<void(int)> sig;
vdk::signal<void(int)> sig;

// Connect the signal to a function
sig.connect(function);
Expand Down
3 changes: 1 addition & 2 deletions demo/cross_thread_calls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include "demo.h"

using std::string;
using vdk::signal;
using vdk::context;
using vdk::exec;
using vdk::signals_execute;
Expand Down Expand Up @@ -65,7 +64,7 @@ void signals_cross_thread_calls()
// In order to receive cross-thread signal emissions that thread
// must call signals_execute() in a loop.

signal<void(int, int)> sig;
vdk::signal<void(int, int)> sig;

// Flag is used here for simple start synchronization
std::atomic_bool flag = false;
Expand Down
3 changes: 1 addition & 2 deletions demo/track_objects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
// vdk::lite::context instead of vdk::context.

using std::string;
using vdk::signal;
using vdk::context;

namespace
Expand Down Expand Up @@ -63,7 +62,7 @@ class demo_class : public context

void signals_track_objects()
{
signal<void(const string &)> sig;
vdk::signal<void(const string &)> sig;

{
// This object provides a context for slot invocations, so it
Expand Down