mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-28 09:37:09 +03:00
Resource: Caution about setting up resources in thread-safe manner
This commit is contained in:
1 parent
73bd9fa543
commit
421107b4b7
1 file changed
+4
@@ -311,6 +311,10 @@ As the _uri_path_ of the resource has to be unique across all of the resources
|
||||
associated with a _context_, *coap_add_resource*() will delete any previous
|
||||
_resource_ with the same _uri_path_ before adding in the new _resource_.
|
||||
|
||||
*NOTE:* *coap_add_resource*() should only be called after the rest of the
|
||||
resource has been set up (handlers, observable, attributes etc.) in case another
|
||||
thread starts to use the resource.
|
||||
|
||||
*Function: coap_delete_resource()*
|
||||
|
||||
The *coap_delete_resource*() function deletes the resource identified by
|
||||
|
||||
Reference in new issue
Block a user