Skip to content

Commit

Permalink
feat(multithreading): Prevent use of thread-safe (locked) functions i…
Browse files Browse the repository at this point in the history
…nside the server

This gives a warn if a function is used that can potentially lead to a
deadlock.
  • Loading branch information
jpfr committed Aug 27, 2019
1 parent 0be24bc commit 46270f2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/server/ua_server_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@

_UA_BEGIN_DECLS

#if UA_MULTITHREADING >= 100
#undef UA_THREADSAFE
#define UA_THREADSAFE UA_DEPRECATED
#endif

#ifdef UA_ENABLE_PUBSUB
#include "ua_pubsub_manager.h"
#endif
Expand Down

0 comments on commit 46270f2

Please sign in to comment.