| <<<Back 1 day (to 2017/09/14) | 20170915 |
chris__ | I have a question about the granularity of the locks in mupdf. FZ_LOCK_ALLOC is used for both memory allocation, and for refcounting. In my build, (x64 windows ) malloc and free are already threadsafe, so I do not need a lock for memory allocation. I would like to provide a no-op lock for FZ_LOCK_ALLOC, but it is needed for the refcounting. Any thoughts on adding a separate lock for refcounting? | 19:21.14 |
tor8 | chris__: our memory allocator does extra work, which needs to be protected. | 19:52.58 |
| we will clear cached data if we run low on memory in our allocator, etc. | 19:53.25 |
| Forward 1 day (to 2017/09/16)>>> | |