EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Blocking or not?

Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.
Posted: 12/13/2009 22:19:32
by Weihan Wang (Standard support level)
Joined: 12/13/2009
Posts: 4

Two questions:

1. May NotifyDirectoryChange() block? If not, is it guaranteed that such non-blocking behavior will persist in future CBFS releases?

2. UnmountMedia() blocks until all pending callbacks return, regardless of the value of the ForceUnmount parameter. Am I right?

Posted: 12/14/2009 02:32:10
by Volodymyr Zinin (EldoS Corp.)

1. From the callbacks it's called always asynchronously. If it's called from any other code (outside the callbacks) then this call is synchronous (i.e. it blocks until it completely finishes).

2. Yes, you are right.
Posted: 12/15/2009 15:55:04
by Weihan Wang (Standard support level)
Joined: 12/13/2009
Posts: 4

Thanks Vladimir. Is there any way to call NotifyDirectoryChange() asynchronously from outside the callback? i.e. the function schedules the job to another thread and returns immediately.
Posted: 12/16/2009 05:52:10
by Volodymyr Zinin (EldoS Corp.)

In CallbackFS ver.3 there will be a possibility to call NotifyDirectoryChange always asynchronously. We are going to release it shortly.



Topic viewed 1480 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!