public void CreateViewStream(long offset, long size)
 {
     stream      = instance.CreateViewStream(offset, size);
     this.offset = offset;
     this.size   = size;
     ca          = CreateAccess.CreateViewStream;
     na          = 1;
 }
 public void CreateViewAccessor(long offset, long size)
 {
     accessor    = instance.CreateViewAccessor(offset, size);
     this.offset = offset;
     this.size   = size;
     ca          = CreateAccess.CreateViewAccessor;
     na          = 1;
 }
 public void CreateViewStream(long offset, long size, MemoryMappedFileAccess access)
 {
     stream      = instance.CreateViewStream(offset, size, access);
     this.offset = offset;
     this.size   = size;
     this.access = access;
     ca          = CreateAccess.CreateViewStream;
     na          = 2;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Release the table's create access in the event that a read serialised transaction has been finalised.
 /// </summary>
 public void ReleasedSerialisedAccess()
 {
     //Set the boolean flag under a lock
     lock (Lock)
     {
         SerialisedAccess = false;
     }
     //Release the mutex that represents the create access
     CreateAccess.Release();
 }
Exemplo n.º 5
0
 /// <summary>
 /// Acquire the table's create access in the event that a read serialised transaction is in use.
 /// </summary>
 public void GetSerialisedAccess()
 {
     //Set the boolean flag under a lock
     lock (Lock)
     {
         SerialisedAccess = true;
     }
     //Acquire the mutex that represents the create access
     CreateAccess.Acquire();
 }
 public void CreateViewStream()
 {
     stream = instance.CreateViewStream();
     ca     = CreateAccess.CreateViewStream;
     na     = 0;
 }
 public void CreateViewAccessor()
 {
     accessor = instance.CreateViewAccessor();
     ca       = CreateAccess.CreateViewAccessor;
     na       = 0;
 }