EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Blocking or not?

Also by EldoS: MsgConnect
Cross-platform protocol-independent communication framework for building peer-to-peer and client-server applications and middleware components.
#11923
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?

Thanks,
Weihan
#11929
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.
#11953
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.
#11959
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.

Reply

Statistics

Topic viewed 1549 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!