private void SetObjectPriority(UUID sogId, Amib.Threading.WorkItemPriority newPrio) { TimestampedItem<Amib.Threading.WorkItemPriority> prio; if (m_objectPriorities.TryGetValue(sogId, out prio)) { prio.Item = newPrio; prio.ResetTimestamp(); } else { m_objectPriorities[sogId] = new TimestampedItem<Amib.Threading.WorkItemPriority>(newPrio); } }
public void QueueWorkItem(Amib.Threading.Action action) { threadPool.QueueWorkItem(action); }