Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
See this thread for further details (as well as nice explanation from @jlouis): Vagabond/erlang-syslog#9 Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
- Loading branch information
c3eef51
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is what is the thing to do. But please make sure you are only reading in the callbacks and not updating stuff in a way that is not thread-safe. Earlier, we could rely on only having one worker in the driver callback code at a time due to a giant lock around it. But we can't now, so extra care has to be taken.
I agree, however, that this is the needed way around the problem.