diff options
author | Matt Holgate <matt@emobix.co.uk> | 2014-06-23 16:51:16 +0100 |
---|---|---|
committer | Matt Holgate <matt@emobix.co.uk> | 2014-06-23 16:51:16 +0100 |
commit | 38ae8629788b21ae653943f8ef4f02f9bbd74b96 (patch) | |
tree | df7cd4e53b71d87ec52fc53c768720bf41311010 /docs/refcount.txt | |
parent | 6b39f7991bf1330fc75a7dd869bc46a7f8f10078 (diff) | |
download | mupdf-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 'docs/refcount.txt')
0 files changed, 0 insertions, 0 deletions