dokan-dev / dokany

User mode file system library for windows with FUSE Wrapper
http://dokan-dev.github.io
5.15k stars 657 forks source link

Register callback for dismount #1171

Closed LTRData closed 10 months ago

LTRData commented 10 months ago

Added two API functions DokanRegisterWaitForFileSystemClosed and DokanUnregisterWaitForFileSystemClosed, for registering and unregistering a callback to be called when the DeviceClosedWaitHandle is set. Makes it easier to register work to be done after dismount without letting a thread wait for it.

New feature.

Checklist

Changes proposed in this pull request:

-

-

Liryna commented 10 months ago

Hi @LTRData ,

That's a very good idea of API 🥇 ! Could you add them to the header with some documentation like the existing ones ? https://github.com/dokan-dev/dokany/blob/ce8b8229ad8262f920ca8d284448c1fe10e46cae/dokan/dokan.h#L878

LTRData commented 10 months ago

Hi @LTRData ,

That's a very good idea of API 🥇 ! Could you add them to the header with some documentation like the existing ones ? https://github.com/dokan-dev/dokany/blob/ce8b8229ad8262f920ca8d284448c1fe10e46cae/dokan/dokan.h#L878

Yes I'll do that! 👍

LTRData commented 10 months ago

Done!

Liryna commented 10 months ago

Thank you very much @LTRData ! I am currently blocked by https://github.com/dokan-dev/dokany/issues/648 until I can make a release including your changes. Hopefully, it can happen in the next days.

LTRData commented 10 months ago

Thank you!