private void init(shared_strand strand) { _strand = strand; _waitQueue = new LinkedList <wait_node>(); _lockID = 0; _recCount = 0; }
static public void last_tick(Action action) { shared_strand currStrand = running_strand(); Debug.Assert(null != currStrand, "不正确的 last_tick 调用!"); currStrand._readyQueue.AddLast(action); }
public go_mutex(shared_strand strand) { _strand = strand; _waitQueue = new LinkedList <wait_node>(); _lockID = 0; _recCount = 0; _mustTick = false; }
public async_timer(shared_strand strand, bool utcMode = false) { _strand = strand; _timerCount = 0; _beginTick = 0; _isInterval = false; _onTopCall = false; _utcMode = utcMode; }
public steady_timer(shared_strand strand, bool utcMode) { _utcMode = utcMode; _timerCount = 0; _looping = false; _expireTime = long.MaxValue; _strand = strand; _timerQueue = new Map <long, async_timer>(true); }
public async_timer(shared_strand strand) { _strand = strand; _timer = null; _lastTimeout = 0; _timerCount = 0; _beginTick = 0; _isInterval = false; _onTopCall = false; }
public go_condition_variable(shared_strand strand) { _strand = strand; _waitQueue = new LinkedList <tuple <long, go_mutex, Action> >(); _mustTick = false; }
public go_shared_mutex(shared_strand strand) : base(strand) { _waitQueue = new LinkedList <wait_node>(); _sharedMap = new Dictionary <long, shared_count>(); }
private void init(shared_strand strand) { _strand = strand; _waitQueue = new LinkedList <functional.func>(); }
public condition_variable() { shared_strand strand = generator.self_strand(); init(null != strand ? strand : new shared_strand()); }
public condition_variable(shared_strand strand) { _strand = strand; _waitQueue = new LinkedList <functional.func>(); }
public mutex() { shared_strand strand = generator.self_strand(); init(null != strand ? strand : new shared_strand()); }
public mutex(shared_strand strand) { init(strand); }
private void init(shared_strand strand) { _upgradeMutex = new mutex(strand); _waitQueue = new LinkedList <wait_node>(); _sharedMap = new SortedList <long, shared_count>(); }