LIU Hao wrote:

> As a robust mutex specifically handles the case where the owner thread no 
> longer exists, `mutex->Owner`
> might be recycled and reused for a different thread.

There is another concern I have.

We use `(DWORD)-1` as a special thread id value to indicate that a lock has no 
owner. Is possible that a real thread will have this value as ID? Maybe we need 
to have an extra field which says that lock is locked, in which case stored 
thread id value is always treated as a valid thread id.

- Kirill Makurin

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to