Пример #1
0
 public static ulong AddDbc(DbcHandle dbc)
 {
     ulong handle = (ulong)Interlocked.Increment(ref _handle);
     return _dbs.TryAdd(handle, dbc) ? handle : 0;
 }
Пример #2
0
        public static ulong AddDbc(DbcHandle dbc)
        {
            ulong handle = (ulong)Interlocked.Increment(ref _handle);

            return(_dbs.TryAdd(handle, dbc) ? handle : 0);
        }