msvcp110: Add _Mtx_reset_owner implementation.
Signed-off-by: Piotr Caban <piotr@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
90c0807a87
commit
e040e2c16a
6 changed files with 12 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue