Skip to content
Discussion options

You must be logged in to vote

from the docs:

Also, fn can send any data to a worker thread, which can be recv()ed by a worker thread

just mg_send(c->fn_data, ...); in fn and int n = recv(sock, buffer, sizeof(buffer), 0); // THIS WILL BLOCK in your worker thread

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@scaprile
Comment options

@mcordova1967
Comment options

Answer selected by scaprile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants