Commit e040e2c1 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcp110: Add _Mtx_reset_owner implementation.

parent 90c0807a
......@@ -3823,7 +3823,7 @@
@ cdecl _Mtx_getconcrtcs(ptr)
@ cdecl _Mtx_init(ptr long)
@ cdecl _Mtx_lock(ptr)
@ stub _Mtx_reset_owner
@ cdecl _Mtx_reset_owner(ptr)
@ stub _Mtx_timedlock
@ cdecl _Mtx_trylock(ptr)
@ cdecl _Mtx_unlock(ptr)
......
......@@ -3768,7 +3768,7 @@
@ cdecl _Mtx_getconcrtcs(ptr)
@ cdecl _Mtx_init(ptr long)
@ cdecl _Mtx_lock(ptr)
@ stub _Mtx_reset_owner
@ cdecl _Mtx_reset_owner(ptr)
@ stub _Mtx_timedlock
@ cdecl _Mtx_trylock(ptr)
@ cdecl _Mtx_unlock(ptr)
......
......@@ -3768,7 +3768,7 @@
@ cdecl _Mtx_getconcrtcs(ptr) msvcp120._Mtx_getconcrtcs
@ cdecl _Mtx_init(ptr long) msvcp120._Mtx_init
@ cdecl _Mtx_lock(ptr) msvcp120._Mtx_lock
@ stub _Mtx_reset_owner
@ cdecl _Mtx_reset_owner(ptr) msvcp120._Mtx_reset_owner
@ stub _Mtx_timedlock
@ cdecl _Mtx_trylock(ptr) msvcp120._Mtx_trylock
@ cdecl _Mtx_unlock(ptr) msvcp120._Mtx_unlock
......
......@@ -3680,7 +3680,7 @@
@ cdecl _Mtx_init(ptr long)
@ cdecl _Mtx_init_in_situ(ptr long)
@ cdecl _Mtx_lock(ptr)
@ stub _Mtx_reset_owner
@ cdecl _Mtx_reset_owner(ptr)
@ stub _Mtx_timedlock
@ cdecl _Mtx_trylock(ptr)
@ cdecl _Mtx_unlock(ptr)
......
......@@ -814,6 +814,13 @@ void __cdecl _Mtx_clear_owner(_Mtx_arg_t mtx)
m->count--;
}
void __cdecl _Mtx_reset_owner(_Mtx_arg_t mtx)
{
_Mtx_t m = MTX_T_FROM_ARG(mtx);
m->thread_id = GetCurrentThreadId();
m->count++;
}
static inline LONG interlocked_dec_if_nonzero( LONG *dest )
{
LONG val, tmp;
......
......@@ -3680,7 +3680,7 @@
@ cdecl _Mtx_init(ptr long) msvcp140._Mtx_init
@ cdecl _Mtx_init_in_situ(ptr long) msvcp140._Mtx_init_in_situ
@ cdecl _Mtx_lock(ptr) msvcp140._Mtx_lock
@ stub _Mtx_reset_owner
@ cdecl _Mtx_reset_owner(ptr) msvcp140._Mtx_reset_owner
@ stub _Mtx_timedlock
@ cdecl _Mtx_trylock(ptr) msvcp140._Mtx_trylock
@ cdecl _Mtx_unlock(ptr) msvcp140._Mtx_unlock
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment