Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/08/09 14:52:17 (16 years ago)
Author:
svonolfe
Message:

Added lock to avoid race conditions (#372).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Server.ADODataAccess/DataAdapterBase.cs

    r1088 r1093  
    4040    protected abstract ObjT Convert(RowT row, ObjT obj);
    4141
     42    [MethodImpl(MethodImplOptions.Synchronized)]
    4243    protected abstract RowT InsertNewRow(ObjT obj);
    4344
     45    [MethodImpl(MethodImplOptions.Synchronized)]
    4446    protected abstract void UpdateRow(RowT row);
    4547
     48    [MethodImpl(MethodImplOptions.Synchronized)]
    4649    protected abstract IEnumerable<RowT> FindById(long id);
    4750
     51    [MethodImpl(MethodImplOptions.Synchronized)]
    4852    protected abstract IEnumerable<RowT> FindAll();
    4953    #endregion
     
    6468    }
    6569
    66     [MethodImpl(MethodImplOptions.Synchronized)]
    6770    protected virtual ObjT FindSingle(Selector selector) {
    6871      RowT row = FindSingleRow(selector);
     
    9598    }
    9699
    97     [MethodImpl(MethodImplOptions.Synchronized)]
    98100    protected virtual RowT GetRowById(long id) {
    99101      return FindSingleRow(
     
    121123    }
    122124
    123     [MethodImpl(MethodImplOptions.Synchronized)]
    124125    public virtual ObjT GetById(long id) {
    125126      return FindSingle(delegate() {
     
    128129    }
    129130
    130     [MethodImpl(MethodImplOptions.Synchronized)]
    131131    public virtual ICollection<ObjT> GetAll() {
    132132      return new List<ObjT>(
Note: See TracChangeset for help on using the changeset viewer.