Age | Commit message (Collapse) | Author | |
---|---|---|---|
2017-01-17 | Fix typos. | Sebastian Rasmussen | |
2016-12-27 | Strip extraneous blank lines. | Tor Andersson | |
2016-12-19 | Add MuOfficeLib functions to safely run native MuPDF ops. | Robin Watts | |
It seems likely that we'll want people to able to use the MuPDF C API as well as the MuOfficeLib helper lib. We therefore need a way to get fz_context and fz_document values out of MuOfficeLib. Potential problems exist with people calling MuPDF C API functions using an fz_context that is in use elsewhere. Similarly, if an fz_document is in use in a background thread (for instance in a page render), we need to ensure that it can't be used at the same time elsewhere. We therefore provide MuOffice{Lib,Doc,Page}_run functions that allow this to happen safely. This largely insulates callers from the complexities of having to clone contexts etc, it safely ensures that exceptions cannot be propogated beyond the topmost fz_try/ fz_catch, and it ensures that appropriate locking is used. | |||
2016-12-19 | mu-threads: Fix windows thread and semaphore creation | Robin Watts | |
Was returning errors on successful creation. | |||
2016-12-19 | mu-office-lib: Move threads out of statics. | Robin Watts | |
Avoid using statics to hold the mutexes. This is safer for multiple-instantiation. | |||
2016-12-19 | mu-threads: Fix Windows mu_destroy_thread | Robin Watts | |
When destroying a thread, set the thread handle to NULL so we know that subsequent calls shouldn't try to destroy it again. | |||
2016-11-23 | Fix mu-threads build on linux. | Tor Andersson | |
2016-11-23 | First version of mu-office-lib. | Robin Watts | |
2016-11-23 | Move threading macros out into a mu-threads helper file. | Robin Watts | |