Coder Social home page Coder Social logo

Comments (2)

Liryna avatar Liryna commented on July 23, 2024

Hi @dswiss-desktop-app ,

Thanks for the report but unfortunately this is a known issue (not exactly this case but expected)
https://github.com/dokan-dev/dokany/blob/master/dokan/dokan.h#L147

The usual scenario is that a new request B holds a lock on a file (asked by the system) while a request A tries to complete but it cannot as locking is required. B cannot execute because the thread is busy with A.
On a multiple thread mode, A would unlock when B would have been completed.

I highly suggest not to run in a single thread mode.

A workaround would be to have a pool of thread in the library that takes care of submitting the result to the kernel instead of the single thread. This will allow B to execute on the single thread while another thread is pending for A result submission to go through. This requires some work if anyone is interested to contribute I would be happy to review it.

from dokany.

dswiss-desktop-app avatar dswiss-desktop-app commented on July 23, 2024

Ok, we need to do a few changes to make our wrapper thread safe. But thanks for the explanation. Unfortunately our team has been downsized and we have no capacity to help you with this... ;-(

from dokany.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.