Skip to content

Implement memory & thread safe Cookie #147

Description

@monoamine11231

Why?
Currently, mupdf-rs supports the Cookie struct which is designed to be sent across threads and locked by the inner locks initialized in the main context.

The Cookie struct can be used to abort a current rendering session on another thread by setting the abort flag.

The problem is that the Cookie struct in mupdf-rs is just a wrapper struct holding a raw mut pointer which implements the !Send trait which means that it cannot be used across multiple threads without using unsafe.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingqualityImprove the quality of the code

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions