summaryrefslogtreecommitdiff
path: root/thirdparty/zlib
diff options
context:
space:
mode:
authorMatt Holgate <matt@emobix.co.uk>2014-06-23 16:51:16 +0100
committerMatt Holgate <matt@emobix.co.uk>2014-06-23 16:51:16 +0100
commit38ae8629788b21ae653943f8ef4f02f9bbd74b96 (patch)
treedf7cd4e53b71d87ec52fc53c768720bf41311010 /thirdparty/zlib
parent6b39f7991bf1330fc75a7dd869bc46a7f8f10078 (diff)
downloadmupdf-38ae8629788b21ae653943f8ef4f02f9bbd74b96.tar.xz
Prevent the creation/destruction of the fz_cookies from trampling the env/clazz pointers in globals.
The env/clazz pointers are stashed in the globals structure so that they can be accessed by callback functions in mupdf.c (such as bufferStreamSeek()). The intention is that only one thread (i.e. the AsyncTask background thread) reads/writes these stashed pointers. Because cookies are created/destroyed in the main thread, we add a new version of get_globals() which doesn't trample these pointers.
Diffstat (limited to 'thirdparty/zlib')
0 files changed, 0 insertions, 0 deletions