123456789101112131415161718192021 |
- using System.Threading;
- using TSZ.MEP.RevitUtils.Windows;
- namespace SAGA.RevitUtils.Windows
- {
- public class Request
- {
- private int m_Request;
- public void Make(RequestId request)
- {
- Interlocked.Exchange(ref this.m_Request, (int) request);
- }
- public RequestId Take()
- {
- return (RequestId) Interlocked.Exchange(ref this.m_Request, 0);
- }
- }
- }
|