Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
26d30c63
Commit
26d30c63
authored
Feb 28, 2017
by
Piotr Caban
Committed by
Alexandre Julliard
Feb 28, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcr110: Add _Lock_shared_ptr_spin_lock implementation.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3b9e9dd0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
2 deletions
+23
-2
msvcr110.spec
dlls/msvcr110/msvcr110.spec
+2
-2
lock.c
dlls/msvcrt/lock.c
+21
-0
No files found.
dlls/msvcr110/msvcr110.spec
View file @
26d30c63
...
...
@@ -854,7 +854,7 @@
@ cdecl _Gettnames()
@ extern _HUGE MSVCRT__HUGE
@ cdecl _IsExceptionObjectToBeDestroyed(ptr)
@
stub _Lock_shared_ptr_spin_lock
@
cdecl _Lock_shared_ptr_spin_lock()
@ stub -arch=i386 _NLG_Dispatch2
@ stub -arch=arm,win64 __NLG_Dispatch2
@ stub -arch=i386 _NLG_Return
...
...
@@ -863,7 +863,7 @@
@ stub -arch=win64 _SetImageBase
@ stub -arch=win64 _SetThrowImageBase
@ cdecl _Strftime(str long str ptr ptr)
@
stub _Unlock_shared_ptr_spin_lock
@
cdecl _Unlock_shared_ptr_spin_lock()
@ cdecl _W_Getdays()
@ cdecl _W_Getmonths()
@ cdecl _W_Gettnames()
...
...
dlls/msvcrt/lock.c
View file @
26d30c63
...
...
@@ -1018,6 +1018,27 @@ MSVCRT_bool __thiscall _ReentrantBlockingLock__TryAcquire(_ReentrantBlockingLock
}
#endif
#if _MSVCR_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
/**********************************************************************
* msvcrt_free_locks (internal)
*
...
...
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