aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorHornwitser <[email protected]>2015-09-27 16:15:29 +0200
committerHornwitser <[email protected]>2015-10-06 19:09:16 +0200
commit247d1f9ed4eea47013db14d6bd7e804ecff478eb (patch)
tree56cd5972886e5f408a0640dfe3aba2bf075d3d09 /docs
parentMove socket and connection state out of Client (diff)
downloaddiscord.py-247d1f9ed4eea47013db14d6bd7e804ecff478eb.tar.xz
discord.py-247d1f9ed4eea47013db14d6bd7e804ecff478eb.zip
Make dispatch multithreading safe
Guard the execution of dispatch with a recursive thread lock. This is needed to make a thread safe way to send events to Client objects. Note that the only thread safe method is dispatch, everything else is unsafe to call from another thread, as the thead handling the Client object could be modifying arbitrary structures at any time. In addition this only keeps nasal demons away, and does not solve any of the difficult syncronization issues that might be present.
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions