>    I.e. sequence like this:
> 
> 1) create dbb with flag "creating"
> 2) get list mutex
> 3) create the file and get its id

1- This would destroy any existing file, no?
2- why "get list mutex" before the create file and/or get fileID?

Wouldn't the better "creating" order be:

- try to open/create file with non-shared access attribute, if success then get 
fileID else fail/ throw "file already exists"
- create dbb with flag "creating"
- get list mutex
- add the FileID to the list
- release list mutex
- acquire dbb init mutex
...


------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to