Skip to content

Commit 33b9ec2

Browse files
more docs
1 parent 9b021a6 commit 33b9ec2

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

include/nbl/system/CApplicationAndroid.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ class CApplicationAndroid : public IApplicationFramework
5353
const system::path& _localInputCWD,
5454
const system::path& _localOutputCWD,
5555
const system::path& _sharedInputCWD,
56-
const system::path& _sharedOutputCWD) : IApplicationFramework(_localInputCWD, _localOutputCWD, _sharedInputCWD, _sharedOutputCWD), eventPoller(params, this), m_app(params), m_env(env)
56+
const system::path& _sharedOutputCWD
57+
) : IApplicationFramework(_localInputCWD, _localOutputCWD, _sharedInputCWD, _sharedOutputCWD), eventPoller(params, this), m_app(params), m_env(env)
5758
{
5859
params->onAppCmd = handleCommand;
5960
params->onInputEvent = handleInput;
@@ -106,8 +107,9 @@ class CApplicationAndroid : public IApplicationFramework
106107
int events;
107108
bool keepPolling = true;
108109
public:
109-
CEventPoller(android_app* _app, CApplicationAndroid* _framework) : app(_app), framework(_framework) {
110-
start();
110+
CEventPoller(android_app* _app, CApplicationAndroid* _framework) : base_t(base_t::start_on_construction), app(_app), framework(_framework)
111+
{
112+
waitForInitComplete();
111113
}
112114
protected:
113115
void init() {

include/nbl/system/ISystem.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,10 @@ class NBL_API2 ISystem : public core::IReferenceCounted
271271
core::smart_refctd_ptr<ICaller> m_caller;
272272

273273
public:
274-
inline CAsyncQueue(core::smart_refctd_ptr<ICaller>&& caller) : base_t(base_t::start_on_construction), m_caller(std::move(caller)) {}
274+
inline CAsyncQueue(core::smart_refctd_ptr<ICaller>&& caller) : base_t(base_t::start_on_construction), m_caller(std::move(caller))
275+
{
276+
//waitForInitComplete(); init is a NOOP
277+
}
275278

276279
void process_request(base_t::future_base_t* _future_base, SRequestType& req);
277280

src/nbl/ui/CWindowManagerWin32.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,10 @@ class CWindowManagerWin32 final : public IWindowManagerWin32, public ICursorCont
198198
using base_t = system::IAsyncQueueDispatcher<CAsyncQueue,SRequest,CircularBufferSize>;
199199

200200
public:
201-
inline CAsyncQueue() : base_t(base_t::start_on_construction) {}
201+
inline CAsyncQueue() : base_t(base_t::start_on_construction)
202+
{
203+
//waitForInitComplete(); init is a NOOP
204+
}
202205

203206
inline void init() {}
204207

0 commit comments

Comments
 (0)