EldoS | Feel safer!

Software components for data protection, secure storage and transfer

File context handling

Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages
#12854
Posted: 03/25/2010 10:23:31
by Hunter Hagewood (Standard support level)
Joined: 10/02/2009
Posts: 9

Considering that I set CallAllOpenCloseCallbacks true, and that my implemented callback to open always set a different value for file context. Suppose a file is opened twice by two different applications at the same time. In this case, CBFS keeps two different contexts for each application that called open or the context is overwritten when the second open is called? I mean, the contexts are associated to files independent of threads or each thread keeps its own context?
#12855
Posted: 03/25/2010 11:36:16
by Volodymyr Zinin (Team)

The context is associated with a file at all (not with a file opening). I.e. if you reset the context during the second opening then the previous one will be overwritten.
#12856
Posted: 03/25/2010 11:59:26
by Hunter Hagewood (Standard support level)
Joined: 10/02/2009
Posts: 9

So, If I set CallAllOpenCloseCallbacks false and a file is opened twice by two different applications the callback for close will just be called when the last application close the file, right?
#12857
Posted: 03/25/2010 12:43:07
by Volodymyr Zinin (Team)

Yes
#12858
Posted: 03/25/2010 13:01:44
by Hunter Hagewood (Standard support level)
Joined: 10/02/2009
Posts: 9

Ok... thank you
Also by EldoS: SecureBlackbox
200+ components and classes for digital security, signing, encryption and secure networking.

Reply

Statistics

Topic viewed 1561 times

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




|

Back to top

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

Got it!