Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
3b9e9dd0
Commit
3b9e9dd0
authored
Feb 28, 2017
by
Piotr Caban
Committed by
Alexandre Julliard
Feb 28, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcp110: Add _Lock_shared_ptr_spin_lock implementation.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a33f4646
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
8 deletions
+29
-8
msvcp110.spec
dlls/msvcp110/msvcp110.spec
+2
-2
msvcp120.spec
dlls/msvcp120/msvcp120.spec
+2
-2
msvcp120_app.spec
dlls/msvcp120_app/msvcp120_app.spec
+2
-2
msvcp140.spec
dlls/msvcp140/msvcp140.spec
+2
-2
misc.c
dlls/msvcp90/misc.c
+21
-0
No files found.
dlls/msvcp110/msvcp110.spec
View file @
3b9e9dd0
...
...
@@ -3815,7 +3815,7 @@
@ stub _LXp_sqrtx
@ stub _LXp_subx
@ extern _LZero
@
stub _Lock_shared_ptr_spin_lock
@
cdecl _Lock_shared_ptr_spin_lock()
@ cdecl _Mbrtowc(ptr ptr long ptr ptr)
@ stub _Mtx_clear_owner
@ cdecl _Mtx_current_owns(ptr)
...
...
@@ -3874,7 +3874,7 @@
@ stub _Tss_delete
@ stub _Tss_get
@ stub _Tss_set
@
stub _Unlock_shared_ptr_spin_lock
@
cdecl _Unlock_shared_ptr_spin_lock()
@ cdecl _Wcrtomb(ptr long ptr ptr)
@ cdecl _Wcscoll(ptr ptr ptr ptr ptr)
@ stub _Wcsxfrm
...
...
dlls/msvcp120/msvcp120.spec
View file @
3b9e9dd0
...
...
@@ -3760,7 +3760,7 @@
@ stub _LXp_sqrtx
@ stub _LXp_subx
@ extern _LZero
@
stub _Lock_shared_ptr_spin_lock
@
cdecl _Lock_shared_ptr_spin_lock()
@ cdecl _Mbrtowc(ptr ptr long ptr ptr)
@ stub _Mtx_clear_owner
@ cdecl _Mtx_current_owns(ptr)
...
...
@@ -3821,7 +3821,7 @@
@ stub _Tss_delete
@ stub _Tss_get
@ stub _Tss_set
@
stub _Unlock_shared_ptr_spin_lock
@
cdecl _Unlock_shared_ptr_spin_lock()
@ cdecl _Wcrtomb(ptr long ptr ptr)
@ cdecl _Wcscoll(ptr ptr ptr ptr ptr)
@ stub _Wcsxfrm
...
...
dlls/msvcp120_app/msvcp120_app.spec
View file @
3b9e9dd0
...
...
@@ -3760,7 +3760,7 @@
@ stub _LXp_sqrtx
@ stub _LXp_subx
@ extern _LZero msvcp120._LZero
@
stub
_Lock_shared_ptr_spin_lock
@
cdecl _Lock_shared_ptr_spin_lock() msvcp120.
_Lock_shared_ptr_spin_lock
@ cdecl _Mbrtowc(ptr ptr long ptr ptr) msvcp120._Mbrtowc
@ stub _Mtx_clear_owner
@ cdecl _Mtx_current_owns(ptr) msvcp120._Mtx_current_owns
...
...
@@ -3821,7 +3821,7 @@
@ stub _Tss_delete
@ stub _Tss_get
@ stub _Tss_set
@
stub
_Unlock_shared_ptr_spin_lock
@
cdecl _Unlock_shared_ptr_spin_lock() msvcp120.
_Unlock_shared_ptr_spin_lock
@ cdecl _Wcrtomb(ptr long ptr ptr) msvcp120._Wcrtomb
@ cdecl _Wcscoll(ptr ptr ptr ptr ptr) msvcp120._Wcscoll
@ stub _Wcsxfrm
...
...
dlls/msvcp140/msvcp140.spec
View file @
3b9e9dd0
...
...
@@ -3668,7 +3668,7 @@
@ extern _LSnan _LSnan
@ stub _Last_write_time
@ stub _Link
@
stub _Lock_shared_ptr_spin_lock
@
cdecl _Lock_shared_ptr_spin_lock()
@ stub _Lstat
@ stub _Make_dir
@ cdecl _Mbrtowc(ptr ptr long ptr ptr) _Mbrtowc
...
...
@@ -3738,7 +3738,7 @@
@ cdecl _Towlower(long ptr) _Towlower
@ cdecl _Towupper(long ptr) _Towupper
@ stub _Unlink
@
stub _Unlock_shared_ptr_spin_lock
@
cdecl _Unlock_shared_ptr_spin_lock()
@ stub _WStod
@ stub _WStodx
@ stub _WStof
...
...
dlls/msvcp90/misc.c
View file @
3b9e9dd0
...
...
@@ -1339,3 +1339,24 @@ void __cdecl threads__Mtx_unlock(void *mtx)
{
LeaveCriticalSection
(
mtx
);
}
#if _MSVCP_VER >= 110
static
LONG
shared_ptr_lock
;
void
__cdecl
_Lock_shared_ptr_spin_lock
(
void
)
{
LONG
l
=
0
;
while
(
InterlockedCompareExchange
(
&
shared_ptr_lock
,
1
,
0
)
!=
0
)
{
if
(
l
++
==
1000
)
{
Sleep
(
0
);
l
=
0
;
}
}
}
void
__cdecl
_Unlock_shared_ptr_spin_lock
(
void
)
{
shared_ptr_lock
=
0
;
}
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment