Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multi-thread: Add in thread safe support #1280

Merged
merged 1 commit into from
Nov 25, 2023
Merged

Conversation

mrdeep1
Copy link
Collaborator

@mrdeep1 mrdeep1 commented Nov 15, 2023

Optional compile time thread safe code supported.

Locking is done at the coap_context_t level, and if enabled is primarily done coap_threadsafe.c and coap_threadsafe_internal.h.

coap_threadsafe_internal.h causes coap_X() to get mapped to coap_X_locked() throughout the libcoap library code with the exception of coap_threadsafe.c if thread safe is enabled.

Optional compile time thread safe code supported.

Locking is done at the coap_context_t level, and if enabled is primarily
done coap_threadsafe.c and coap_threadsafe_internal.h.

coap_threadsafe_internal.h causes coap_X() to get mapped to coap_X_locked()
throughout the libcoap library code with the exception of coap_threadsafe.c
if thread safe is enabled.
@mrdeep1 mrdeep1 merged commit c69c5d5 into obgm:develop Nov 25, 2023
@mrdeep1 mrdeep1 deleted the thread_safe branch November 25, 2023 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant