| <<<Back 1 day (to 2016/04/08) | 20160409 |
ferter | hi everyone! | 14:04.54 |
| I faced a stumbling block lately, and completely failed to tackle it. | 14:05.44 |
| not asking for a straight answer but just wondering your thoughts | 14:06.08 |
| so i'm developing a uwp pdr reader using mupdf | 14:06.44 |
| and i faced a problem | 14:07.38 |
| currently the pages are loading as they appear in a viewport | 14:08.28 |
| when i scroll a document display list and annotation list are creating and then this page renders | 14:09.14 |
| but when i parse fz_document i need to lock certain resources and wait | 14:12.09 |
Robin_Watts | What do you mean by lock certain resources? | 14:12.57 |
| Are you calling MuPDF from different threads ? | 14:13.22 |
ferter | yes | 14:13.40 |
Robin_Watts | And have you provided the locking methods to MuPDF in the fz_new_context call ? | 14:14.01 |
| I'm going to assume that's a no :) | 14:25.45 |
| In which case, presumably, you are reusing the same context in multiple threads at the same time. Don't do that. | 14:26.03 |
ferter | the thing is | 14:26.14 |
| i just found out | 14:26.20 |
| i'm using a muctx class | 14:26.29 |
| that handles this things | 14:26.37 |
Robin_Watts | See docs/overview.txt | 14:26.44 |
| There is a Multi-threading section there. | 14:26.59 |
| You need a main context, and then the easiest thing to do is to clone that between threads. | 14:27.26 |
| Where did you get the muctx class? | 14:27.33 |
ferter | at some point we found it somewhere as a winrt wrapper around mupdf. now when i understood it, i see, there is no point asking you guys | 14:28.51 |
| and i feel dump now | 14:29.02 |
Robin_Watts | don't feel dumb. It was a reasonable question. | 14:29.20 |
ferter | but thanks for you reference). i will read it now | 14:29.53 |
| Forward 1 day (to 2016/04/10)>>> | |