Fix emscripten build
GitOrigin-RevId: d39365eebf456462d3672c602bccd75ef612ca85
This commit is contained in:
parent
85c9a8bdb1
commit
389e961720
@ -25,9 +25,12 @@ void ConcurrentScheduler::init(int32 threads_n) {
|
|||||||
threads_n++;
|
threads_n++;
|
||||||
std::vector<std::shared_ptr<MpscPollableQueue<EventFull>>> outbound(threads_n);
|
std::vector<std::shared_ptr<MpscPollableQueue<EventFull>>> outbound(threads_n);
|
||||||
for (int32 i = 0; i < threads_n; i++) {
|
for (int32 i = 0; i < threads_n; i++) {
|
||||||
|
#if TD_THREAD_UNSUPPORTED || TD_EVENTFD_UNSUPPORTED
|
||||||
|
#else
|
||||||
auto queue = std::make_shared<MpscPollableQueue<EventFull>>();
|
auto queue = std::make_shared<MpscPollableQueue<EventFull>>();
|
||||||
queue->init();
|
queue->init();
|
||||||
outbound[i] = queue;
|
outbound[i] = queue;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
schedulers_.resize(threads_n);
|
schedulers_.resize(threads_n);
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
namespace td {
|
namespace td {
|
||||||
|
|
||||||
const unsigned char TlParser::empty_data[sizeof(UInt256)] = {}; // static zero-initialized
|
alignas(128) const unsigned char TlParser::empty_data[sizeof(UInt256)] = {}; // static zero-initialized
|
||||||
|
|
||||||
void TlParser::set_error(const string &error_message) {
|
void TlParser::set_error(const string &error_message) {
|
||||||
if (error.empty()) {
|
if (error.empty()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user