cmlibs / zinc

Source code repository for OpenCMISS-Zinc
Mozilla Public License 2.0
15 stars 18 forks source link

Make Zinc Logger reentrant/thread-safe #196

Open rchristie opened 3 years ago

rchristie commented 3 years ago

When a client receives Zinc Logger events, other Zinc APIs may be in progress. We don't expect the client to call other Zinc APIs from these events (reentrant code), however, we must ensure the Logger API itself is safe to call from its own events. Best would be to ensure logger is thread-safe as well using proper synchronization objects.

rchristie commented 3 years ago

Ensure all notification APIs have warnings about making minimal zinc calls. Check internal notification code to minimise risk.