libzypp: zypp-core/ng/thread/private/asyncqueue_p.h Source File

libzypp 17.38.11

asyncqueue_p.h
Go to the documentation of this file.
1#ifndef ZYPP_NG_THREAD_PRIVATE_ASYNCQUEUE_P_H
2#define ZYPP_NG_THREAD_PRIVATE_ASYNCQUEUE_P_H
3
4#include <zypp-core/ng/base/private/abstracteventsource_p.h>
5#include <zypp-core/ng/thread/asyncqueue.h>
6#include <zypp-core/ng/base/Signals>
7
8#include <glib.h>
9
10namespace zyppng {
11
12 class AsyncQueueWatchPrivate : public AbstractEventSourcePrivate
13 {
14 ZYPP_DECLARE_PUBLIC(AsyncQueueWatch)
15 public:
16 AsyncQueueWatchPrivate( std::shared_ptr<AsyncQueueBase> &&q, AsyncQueueWatch &p );
17 ~AsyncQueueWatchPrivate() override;
18
19 std::shared_ptr<AsyncQueueBase> _queue;
20 gint fds[2] = { -1, -1 };
21 Signal< void()> _sigMessageAvailable;
22 };
23
24}
25
26#endif // ZYPP_NG_THREAD_PRIVATE_ASYNCQUEUE_P_H
abstracteventsource_p.h
asyncqueue.h
zyppng::AbstractEventSourcePrivate::AbstractEventSourcePrivate
AbstractEventSourcePrivate(AbstractEventSource &p)
Definition abstracteventsource.cc:10
zyppng::AsyncQueueWatchPrivate::fds
gint fds[2]
Definition asyncqueue_p.h:20
zyppng::AsyncQueueWatchPrivate::~AsyncQueueWatchPrivate
~AsyncQueueWatchPrivate() override
Definition asyncqueue.cc:45
zyppng::AsyncQueueWatchPrivate::AsyncQueueWatchPrivate
AsyncQueueWatchPrivate(std::shared_ptr< AsyncQueueBase > &&q, AsyncQueueWatch &p)
Definition asyncqueue.cc:32
zyppng::AsyncQueueWatchPrivate::_sigMessageAvailable
Signal< void()> _sigMessageAvailable
Definition asyncqueue_p.h:21
zyppng::AsyncQueueWatchPrivate::_queue
std::shared_ptr< AsyncQueueBase > _queue
Definition asyncqueue_p.h:19
zyppng::AsyncQueueWatch
Definition asyncqueue.h:148
zyppng::Signal
Definition signals.h:151
zyppng
Definition MediaNetworkRequestExecutor.h:16
ZYPP_DECLARE_PUBLIC
#define ZYPP_DECLARE_PUBLIC(Class)
Definition zyppglobal.h:91