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
a7c7bc91
Commit
a7c7bc91
authored
Jul 24, 2015
by
Daniel Lehman
Committed by
Alexandre Julliard
Jul 29, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcr110: Add Concurrency::details::_GetConcurrency.
parent
22f0611c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
3 deletions
+34
-3
msvcr110.spec
dlls/msvcr110/msvcr110.spec
+1
-1
msvcr120.spec
dlls/msvcr120/msvcr120.spec
+1
-1
msvcr120.c
dlls/msvcr120/tests/msvcr120.c
+13
-0
msvcr120_app.spec
dlls/msvcr120_app/msvcr120_app.spec
+1
-1
lock.c
dlls/msvcrt/lock.c
+18
-0
No files found.
dlls/msvcr110/msvcr110.spec
View file @
a7c7bc91
...
...
@@ -533,7 +533,7 @@
@ stub ?_Get@_CurrentScheduler@details@Concurrency@@SA?AV_Scheduler@23@XZ
@ stub -arch=win32 ?_GetConcRTTraceInfo@Concurrency@@YAPBU_CONCRT_TRACE_INFO@details@1@XZ
@ stub -arch=win64 ?_GetConcRTTraceInfo@Concurrency@@YAPEBU_CONCRT_TRACE_INFO@details@1@XZ
@
stub ?_GetConcurrency@details@Concurrency@@YAIXZ
@
cdecl ?_GetConcurrency@details@Concurrency@@YAIXZ() _GetConcurrency
@ stub -arch=win32 ?_GetCurrentInlineDepth@_StackGuard@details@Concurrency@@CAAAIXZ
@ stub -arch=win64 ?_GetCurrentInlineDepth@_StackGuard@details@Concurrency@@CAAEA_KXZ
@ stub ?_GetNumberOfVirtualProcessors@_CurrentScheduler@details@Concurrency@@SAIXZ
...
...
dlls/msvcr120/msvcr120.spec
View file @
a7c7bc91
...
...
@@ -524,7 +524,7 @@
@ stub ?_Get@_CurrentScheduler@details@Concurrency@@SA?AV_Scheduler@23@XZ
@ stub -arch=win32 ?_GetConcRTTraceInfo@Concurrency@@YAPBU_CONCRT_TRACE_INFO@details@1@XZ
@ stub -arch=win64 ?_GetConcRTTraceInfo@Concurrency@@YAPEBU_CONCRT_TRACE_INFO@details@1@XZ
@
stub ?_GetConcurrency@details@Concurrency@@YAIXZ
@
cdecl ?_GetConcurrency@details@Concurrency@@YAIXZ() _GetConcurrency
@ stub -arch=win32 ?_GetCurrentInlineDepth@_StackGuard@details@Concurrency@@CAAAIXZ
@ stub -arch=win64 ?_GetCurrentInlineDepth@_StackGuard@details@Concurrency@@CAAEA_KXZ
@ stub ?_GetNumberOfVirtualProcessors@_CurrentScheduler@details@Concurrency@@SAIXZ
...
...
dlls/msvcr120/tests/msvcr120.c
View file @
a7c7bc91
...
...
@@ -64,6 +64,7 @@ static size_t (CDECL *p_wcstombs_s)(size_t *ret, char* dest, size_t sz, const wc
static
int
(
CDECL
*
p__dsign
)(
double
);
static
int
(
CDECL
*
p__fdsign
)(
float
);
static
wchar_t
**
(
CDECL
*
p____lc_locale_name_func
)(
void
);
static
unsigned
int
(
CDECL
*
p__GetConcurrency
)(
void
);
static
BOOL
init
(
void
)
{
...
...
@@ -82,6 +83,7 @@ static BOOL init(void)
p__dsign
=
(
void
*
)
GetProcAddress
(
module
,
"_dsign"
);
p__fdsign
=
(
void
*
)
GetProcAddress
(
module
,
"_fdsign"
);
p____lc_locale_name_func
=
(
void
*
)
GetProcAddress
(
module
,
"___lc_locale_name_func"
);
p__GetConcurrency
=
(
void
*
)
GetProcAddress
(
module
,
"?_GetConcurrency@details@Concurrency@@YAIXZ"
);
return
TRUE
;
}
...
...
@@ -221,10 +223,21 @@ static void test____lc_locale_name_func(void)
ok
(
!
lc_names
[
1
],
"___lc_locale_name_func()[1] = %s
\n
"
,
wine_dbgstr_w
(
lc_names
[
1
]));
}
static
void
test__GetConcurrency
(
void
)
{
SYSTEM_INFO
si
;
unsigned
int
c
;
GetSystemInfo
(
&
si
);
c
=
(
*
p__GetConcurrency
)();
ok
(
c
==
si
.
dwNumberOfProcessors
,
"expected %u, got %u
\n
"
,
si
.
dwNumberOfProcessors
,
c
);
}
START_TEST
(
msvcr120
)
{
if
(
!
init
())
return
;
test_lconv
();
test__dsign
();
test____lc_locale_name_func
();
test__GetConcurrency
();
}
dlls/msvcr120_app/msvcr120_app.spec
View file @
a7c7bc91
...
...
@@ -522,7 +522,7 @@
@ stub ?_Get@_CurrentScheduler@details@Concurrency@@SA?AV_Scheduler@23@XZ
@ stub -arch=win32 ?_GetConcRTTraceInfo@Concurrency@@YAPBU_CONCRT_TRACE_INFO@details@1@XZ
@ stub -arch=win64 ?_GetConcRTTraceInfo@Concurrency@@YAPEBU_CONCRT_TRACE_INFO@details@1@XZ
@
stub
?_GetConcurrency@details@Concurrency@@YAIXZ
@
cdecl ?_GetConcurrency@details@Concurrency@@YAIXZ() msvcr120.
?_GetConcurrency@details@Concurrency@@YAIXZ
@ stub -arch=win32 ?_GetCurrentInlineDepth@_StackGuard@details@Concurrency@@CAAAIXZ
@ stub -arch=win64 ?_GetCurrentInlineDepth@_StackGuard@details@Concurrency@@CAAEA_KXZ
@ stub ?_GetNumberOfVirtualProcessors@_CurrentScheduler@details@Concurrency@@SAIXZ
...
...
dlls/msvcrt/lock.c
View file @
a7c7bc91
...
...
@@ -537,6 +537,24 @@ void __thiscall critical_section_scoped_lock_dtor(critical_section_scoped_lock *
TRACE
(
"(%p)
\n
"
,
this
);
critical_section_unlock
(
this
->
cs
);
}
/* ?_GetConcurrency@details@Concurrency@@YAIXZ */
unsigned
int
__cdecl
_GetConcurrency
(
void
)
{
static
unsigned
int
val
=
-
1
;
TRACE
(
"()
\n
"
);
if
(
val
==
-
1
)
{
SYSTEM_INFO
si
;
GetSystemInfo
(
&
si
);
val
=
si
.
dwNumberOfProcessors
;
}
return
val
;
}
#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