Path: blob/main/system/lib/pthread/proxying_stub.c
6174 views
/*1* Copyright 2022 The Emscripten Authors. All rights reserved.2* Emscripten is available under two separate licenses, the MIT license and the3* University of Illinois/NCSA Open Source License. Both these licenses can be4* found in the LICENSE file.5*/67// Stub implementation of the proxying queue API that does nothing, for use in8// single-threaded builds.910#include <stdlib.h>11#include <emscripten/proxying.h>1213em_proxying_queue* em_proxying_queue_create() {14return NULL;15}1617void em_proxying_queue_destroy(em_proxying_queue* q) {}1819em_proxying_queue* emscripten_proxy_get_system_queue() {20return NULL;21}2223void emscripten_proxy_execute_queue(em_proxying_queue* q) { abort(); }2425void emscripten_proxy_finish(em_proxying_ctx* ctx) { abort(); }2627int emscripten_proxy_async(em_proxying_queue* q,28pthread_t target_thread,29void (*func)(void*),30void* arg) {31abort();32}3334int emscripten_proxy_sync(em_proxying_queue* q,35pthread_t target_thread,36void (*func)(void*),37void* arg) {38abort();39}4041int emscripten_proxy_sync_with_ctx(em_proxying_queue* q,42pthread_t target_thread,43void (*func)(em_proxying_ctx*, void*),44void* arg) {45abort();46}474849