EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Thread safety in Context

Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages
#23145
Posted: 01/11/2013 19:12:37
by Vishnu Venkatesh (Basic support level)
Joined: 12/27/2012
Posts: 19

Hi - lets say that there are 2 threads in the user mode program that access the same file.

With the UserContext, a single context is used between both the threads between the first open/last close of the file. That single context contains a single buffer and single handle to the file.

This creates BSOD when the threads are not in sync with each other.

Is there a way to create a separate context per thread, or somehow manage thread safety?

Thanks!
#23146
Posted: 01/12/2013 02:39:56
by Vladimir Cherniga (EldoS Corp.)

All callbacks to the single file are serialized internally to the same thread.

Reply

Statistics

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