Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/08/09 14:52:17 (15 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/CachedDataAdapter.cs

    r1088 r1093  
    8585    }
    8686
    87     [MethodImpl(MethodImplOptions.Synchronized)]
    8887    protected virtual ObjT FindSingle(Selector dbSelector,
    8988      Selector cacheSelector) {
     
    117116    }
    118117
     118    [MethodImpl(MethodImplOptions.Synchronized)]
    119119    protected abstract RowT InsertNewRowInCache(ObjT obj);
    120120
     121    [MethodImpl(MethodImplOptions.Synchronized)]
    121122    protected abstract void FillCache();
    122123
     124    [MethodImpl(MethodImplOptions.Synchronized)]
    123125    public abstract void SyncWithDb();
    124126
     127    [MethodImpl(MethodImplOptions.Synchronized)]
    125128    protected abstract bool PutInCache(ObjT obj);
    126129
     130    [MethodImpl(MethodImplOptions.Synchronized)]
    127131    protected abstract RowT FindCachedById(long id);
    128132
     133    [MethodImpl(MethodImplOptions.Synchronized)]
    129134    void CachedDataAdapter_OnUpdate(object sender, EventArgs e) {
    130135      foreach (ICachedDataAdapter parent in this.parentAdapters) {
     
    135140    }
    136141
     142    [MethodImpl(MethodImplOptions.Synchronized)]
    137143    protected virtual void RemoveRowFromCache(RowT row) {     
    138144      cache.Rows.Remove(row);
Note: See TracChangeset for help on using the changeset viewer.