LockCookie.cs 450 B

12345678910111213141516171819202122232425262728
  1. //
  2. // System.Threading.LockCookie.cs
  3. //
  4. // Author:
  5. // Dick Porter ([email protected])
  6. //
  7. // (C) Ximian, Inc. http://www.ximian.com
  8. //
  9. namespace System.Threading
  10. {
  11. [Serializable]
  12. public struct LockCookie
  13. {
  14. internal int ThreadId;
  15. internal bool IsReader;
  16. internal bool IsWriter;
  17. internal LockCookie (int thread_id, bool is_reader, bool is_writer)
  18. {
  19. ThreadId = thread_id;
  20. IsReader = is_reader;
  21. IsWriter = is_writer;
  22. }
  23. }
  24. }