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

locking: Simplify maintenance / debugging /documentation #1420

Merged
merged 1 commit into from
May 24, 2024

Conversation

mrdeep1
Copy link
Collaborator

@mrdeep1 mrdeep1 commented May 23, 2024

Update the Public API equivalent of the libcoap functions that need to be called when locked with a name suffix of _lkd.

Move matching Public API functions out of coap_threadsafe.c to be coded just ahead of the newly renamed _lkd function.

Properly define the _lkd function in the appropriate _internal.h file for documentation, removing the #defines from coap_threadsafe_internal.h.

Tag all the Public API functions that have a _lkd function with COAP_API. COAP_API can then be defined as to what should be done for that function.

Check libcoap library does not call the original Public API function when it should be calling the _lkd function by marking the Public API not _lkd functions as deprecated during the libcoap library build. [Done by the new COAP_API being defined as attribute((deprecated)).]

Work in progress for all the functions that need to be multi-thread safe.

Update the Public API equivalent of the libcoap functions that need to be
called when locked with a name suffix of _lkd.

Move matching Public API functions out of coap_threadsafe.c to be coded
just ahead of the newly renamed _lkd function.

Properly define the _lkd function in the appropriate _internal.h file for
documentation, removing the #defines from coap_threadsafe_internal.h.

Tag all the Public API functions that have a _lkd function with COAP_API.
COAP_API can then be defined as to what should be done for that function.

Check libcoap library does not call the original Public API function when
it should be calling the _lkd function by marking the Public API not _lkd
functions as deprecated during the libcoap library build.
[Done by the new COAP_API being defined as __attribute__((deprecated)).]

Work in progress for all the functions that need to be multi-thread safe.
@mrdeep1 mrdeep1 merged commit cb20c48 into obgm:develop May 24, 2024
31 checks passed
@mrdeep1 mrdeep1 deleted the thread_safe_4 branch May 24, 2024 08:11
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