diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-03-03 09:01:05 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-03-03 09:01:05 +0100 |
commit | 4d9746c828558c9f872e0aed52442863affb25d5 (patch) | |
tree | 507d7c2ba67f47d3cbbcf01a722236ff1b48426b /common/threadboundary.h | |
parent | 9cea920b7dd51867a0be0fed2f461b6be73c103e (diff) | |
download | sink-4d9746c828558c9f872e0aed52442863affb25d5.tar.gz sink-4d9746c828558c9f872e0aed52442863affb25d5.zip |
Fromatted the whole codebase with clang-format.
clang-format -i */**{.cpp,.h}
Diffstat (limited to 'common/threadboundary.h')
-rw-r--r-- | common/threadboundary.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/threadboundary.h b/common/threadboundary.h index 7bea4ea..dd86b20 100644 --- a/common/threadboundary.h +++ b/common/threadboundary.h | |||
@@ -31,17 +31,17 @@ namespace async { | |||
31 | * A helper class to invoke a method in a different thread using the event loop. | 31 | * A helper class to invoke a method in a different thread using the event loop. |
32 | * The ThreadBoundary object must live in the thread where the function should be called. | 32 | * The ThreadBoundary object must live in the thread where the function should be called. |
33 | */ | 33 | */ |
34 | class SINK_EXPORT ThreadBoundary : public QObject { | 34 | class SINK_EXPORT ThreadBoundary : public QObject |
35 | { | ||
35 | Q_OBJECT | 36 | Q_OBJECT |
36 | public: | 37 | public: |
37 | ThreadBoundary(); | 38 | ThreadBoundary(); |
38 | virtual ~ThreadBoundary(); | 39 | virtual ~ThreadBoundary(); |
39 | 40 | ||
40 | //Call in worker thread | 41 | // Call in worker thread |
41 | void callInMainThread(std::function<void()> f); | 42 | void callInMainThread(std::function<void()> f); |
42 | public slots: | 43 | public slots: |
43 | //Get's called in main thread by it's eventloop | 44 | // Get's called in main thread by it's eventloop |
44 | void runInMainThread(std::function<void()> f); | 45 | void runInMainThread(std::function<void()> f); |
45 | }; | 46 | }; |
46 | |||
47 | } | 47 | } |