diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-01-31 14:00:05 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-01-31 14:05:11 +0100 |
commit | 7c94e01d9feff8e6c09c88a9e51c8d5a6cb61005 (patch) | |
tree | d2a7635629bdb897aaeba592a6c98dcae3450937 /common/threadboundary.h | |
parent | 380649c1eb762f5f7a10cd15d1c5e87f36b0638c (diff) | |
download | sink-7c94e01d9feff8e6c09c88a9e51c8d5a6cb61005.tar.gz sink-7c94e01d9feff8e6c09c88a9e51c8d5a6cb61005.zip |
Explicitly state visibility
This cuts the exportet symbols from 12k to 2k and the library size from
16Mb to 14Mb, which isn't great but still an improvement.
About 30% of the symbols are coming from the Store:: interface.
nm -C -D /work/install/lib64/libsinkcommon.so.0.1
Diffstat (limited to 'common/threadboundary.h')
-rw-r--r-- | common/threadboundary.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/common/threadboundary.h b/common/threadboundary.h index 0d8ed3b..d1a1a3c 100644 --- a/common/threadboundary.h +++ b/common/threadboundary.h | |||
@@ -20,6 +20,8 @@ | |||
20 | 20 | ||
21 | #pragma once | 21 | #pragma once |
22 | 22 | ||
23 | #include <sinkcommon_export.h> | ||
24 | |||
23 | #include <QObject> | 25 | #include <QObject> |
24 | #include <functional> | 26 | #include <functional> |
25 | 27 | ||
@@ -29,7 +31,7 @@ namespace async { | |||
29 | * 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. |
30 | * 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. |
31 | */ | 33 | */ |
32 | class ThreadBoundary : public QObject { | 34 | class SINKCOMMON_EXPORT ThreadBoundary : public QObject { |
33 | Q_OBJECT | 35 | Q_OBJECT |
34 | public: | 36 | public: |
35 | ThreadBoundary(); | 37 | ThreadBoundary(); |