MCPcopy Create free account
hub / github.com/buke/quickjs-go / if

Function if

deps/quickjs/quickjs-libc.c:2952–2963  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2950 }
2951#ifdef USE_WORKER
2952 else if (flags & JS_OS_POLL_WORKERS) {
2953 list_for_each(el, &ts->port_list) {
2954 JSWorkerMessageHandler *port = list_entry(el, JSWorkerMessageHandler, link);
2955 if (!JS_IsNull(port->on_message_func)) {
2956 JSWorkerMessagePipe *ps = port->recv_pipe;
2957 if (pfd->fd == ps->waker.read_fd) {
2958 if (handle_posted_message(rt, ctx, port))
2959 goto done;
2960 }
2961 }
2962 }
2963 }
2964#endif // USE_WORKER
2965 }
2966done:

Callers

nothing calls this directly

Calls 2

JS_IsNullFunction · 0.85
handle_posted_messageFunction · 0.85

Tested by

no test coverage detected