diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-05-04 11:40:50 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-05-04 11:45:04 +0200 |
commit | 3e90bbcf004ac543ff1cf6cac4c0c78b2d5927af (patch) | |
tree | b39e5d3f41dd5aaac96bff178425e845098aab67 /tracker-hatire/thread.hpp | |
parent | 5410dce61c4da92760feeb5493b4574bfb854ec8 (diff) |
tracker/hatire: try to optimize the polling path
Issue: #327
Diffstat (limited to 'tracker-hatire/thread.hpp')
-rwxr-xr-x | tracker-hatire/thread.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tracker-hatire/thread.hpp b/tracker-hatire/thread.hpp index c4ce4761..b1861bac 100755 --- a/tracker-hatire/thread.hpp +++ b/tracker-hatire/thread.hpp @@ -165,9 +165,10 @@ public: ~hatire_thread() override; hatire_thread(); - void prepend_unread_data_nolock(const QByteArray& data); + void replace_data_nolock(QByteArray&& data); + + QByteArray& send_data_read_nolock(bool& ret); - QByteArray flush_data_read_nolock(); void Log(const QString& message); QMutex data_mtx; |