(50a5744460f60f68e57118cfad924af556f93f34)
#include "qstdweb_p.h"
#include <QtCore/qcoreapplication.h>
#include <QtCore/qfile.h>
#include <QtCore/qmimedata.h>
#include <emscripten/bind.h>
#include <emscripten/emscripten.h>
#include <emscripten/html5.h>
#include <emscripten/threading.h>
#include <cstdint>
#include <iostream>
#include <unordered_map>
Go to the source code of this file.
◆ CALLBACK_BINDING
#define CALLBACK_BINDING |
( |
| i | ) |
|
Value: emscripten::function(ThunkPool::thunkName(CallbackType::Then,
i).
data(), \
&ThunkPool::THUNK_NAME(Then,
i)); \
emscripten::function(ThunkPool::thunkName(CallbackType::Catch,
i).
data(), \
&ThunkPool::THUNK_NAME(Catch,
i)); \
emscripten::function(ThunkPool::thunkName(CallbackType::Finally,
i).
data(), \
&ThunkPool::THUNK_NAME(Finally,
i));
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
Definition at line 240 of file qstdweb.cpp.
◆ THUNK
Value:
{ \
get()->onThunkCalled(
i, CallbackType::Then, std::move(
result)); \
} \
{ \
get()->onThunkCalled(
i, CallbackType::Catch, std::move(
result)); \
} \
{ \
get()->onThunkCalled(
i, CallbackType::Finally, emscripten::val::undefined()); \
}
#define THUNK_NAME(type, i)
Definition at line 188 of file qstdweb.cpp.
◆ THUNK_NAME
#define THUNK_NAME |
( |
| type, |
|
|
| i ) callbackThunk##type##i |
◆ allocation
std::unique_ptr<ThunkPool::ThunkAllocation> allocation |
◆ callbacks
PromiseCallbacks callbacks |
Definition at line 275 of file qstdweb.cpp.
Referenced by QInternal::activateCallbacks(), qstdweb::Promise::adoptPromise(), qstdweb::Promise::all(), QTextMarkdownImporter::import(), qstdweb::Promise::make(), QGstBaseSrc::operator=(), QXcbXSettings::removeCallbackForHandle(), WebImageButton::setCallbacks(), QCoreGraphicsPaintEnginePrivate::setFillBrush(), QGstAppSource::setup(), QWasmLocalFileAccess::FileDialog::showOpen(), and QWasmLocalFileAccess::FileDialog::showSave().
◆ poolSize
constexpr size_t poolSize = 4 |
|
staticconstexpr |