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
037a079f
Commit
037a079f
authored
Aug 18, 2015
by
Sebastian Lackner
Committed by
Alexandre Julliard
Aug 18, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vcomp: Export omp_init_nest_lock and omp_destroy_nest_lock.
parent
a283d14b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
8 deletions
+28
-8
vcomp.c
dlls/vcomp/tests/vcomp.c
+20
-0
vcomp.spec
dlls/vcomp/vcomp.spec
+2
-2
vcomp100.spec
dlls/vcomp100/vcomp100.spec
+2
-2
vcomp110.spec
dlls/vcomp110/vcomp110.spec
+2
-2
vcomp90.spec
dlls/vcomp90/vcomp90.spec
+2
-2
No files found.
dlls/vcomp/tests/vcomp.c
View file @
037a079f
...
...
@@ -31,6 +31,9 @@ static BOOL (WINAPI *pActivateActCtx)(HANDLE, ULONG_PTR*);
static
BOOL
(
WINAPI
*
pDeactivateActCtx
)(
DWORD
,
ULONG_PTR
);
static
VOID
(
WINAPI
*
pReleaseActCtx
)(
HANDLE
);
typedef
CRITICAL_SECTION
*
omp_lock_t
;
typedef
CRITICAL_SECTION
*
omp_nest_lock_t
;
static
void
(
CDECL
*
p_vcomp_atomic_add_i4
)(
int
*
dest
,
int
val
);
static
void
(
CDECL
*
p_vcomp_atomic_add_r4
)(
float
*
dest
,
float
val
);
static
void
(
CDECL
*
p_vcomp_atomic_add_r8
)(
double
*
dest
,
double
val
);
...
...
@@ -70,11 +73,15 @@ static int (CDECL *p_vcomp_sections_next)(void);
static
void
(
CDECL
*
p_vcomp_set_num_threads
)(
int
num_threads
);
static
int
(
CDECL
*
p_vcomp_single_begin
)(
int
flags
);
static
void
(
CDECL
*
p_vcomp_single_end
)(
void
);
static
void
(
CDECL
*
pomp_destroy_lock
)(
omp_lock_t
*
lock
);
static
void
(
CDECL
*
pomp_destroy_nest_lock
)(
omp_nest_lock_t
*
lock
);
static
int
(
CDECL
*
pomp_get_max_threads
)(
void
);
static
int
(
CDECL
*
pomp_get_nested
)(
void
);
static
int
(
CDECL
*
pomp_get_num_threads
)(
void
);
static
int
(
CDECL
*
pomp_get_thread_num
)(
void
);
static
int
(
CDECL
*
pomp_in_parallel
)(
void
);
static
void
(
CDECL
*
pomp_init_lock
)(
omp_lock_t
*
lock
);
static
void
(
CDECL
*
pomp_init_nest_lock
)(
omp_nest_lock_t
*
lock
);
static
void
(
CDECL
*
pomp_set_nested
)(
int
nested
);
static
void
(
CDECL
*
pomp_set_num_threads
)(
int
num_threads
);
...
...
@@ -249,11 +256,15 @@ static BOOL init_vcomp(void)
VCOMP_GET_PROC
(
_vcomp_set_num_threads
);
VCOMP_GET_PROC
(
_vcomp_single_begin
);
VCOMP_GET_PROC
(
_vcomp_single_end
);
VCOMP_GET_PROC
(
omp_destroy_lock
);
VCOMP_GET_PROC
(
omp_destroy_nest_lock
);
VCOMP_GET_PROC
(
omp_get_max_threads
);
VCOMP_GET_PROC
(
omp_get_nested
);
VCOMP_GET_PROC
(
omp_get_num_threads
);
VCOMP_GET_PROC
(
omp_get_thread_num
);
VCOMP_GET_PROC
(
omp_in_parallel
);
VCOMP_GET_PROC
(
omp_init_lock
);
VCOMP_GET_PROC
(
omp_init_nest_lock
);
VCOMP_GET_PROC
(
omp_set_nested
);
VCOMP_GET_PROC
(
omp_set_num_threads
);
...
...
@@ -1285,6 +1296,14 @@ static void test_vcomp_flush(void)
p_vcomp_flush
();
}
static
void
test_omp_init_nest_lock
(
void
)
{
ok
(
pomp_init_nest_lock
==
pomp_init_lock
,
"expected omp_init_nest_lock == %p, got %p
\n
"
,
pomp_init_lock
,
pomp_init_nest_lock
);
ok
(
pomp_destroy_nest_lock
==
pomp_destroy_lock
,
"expected omp_destroy_nest_lock == %p, got %p
\n
"
,
pomp_destroy_lock
,
pomp_destroy_nest_lock
);
}
static
void
test_atomic_integer32
(
void
)
{
struct
...
...
@@ -1405,6 +1424,7 @@ START_TEST(vcomp)
test_vcomp_single_begin
();
test_vcomp_enter_critsect
();
test_vcomp_flush
();
test_omp_init_nest_lock
();
test_atomic_integer32
();
test_atomic_float
();
test_atomic_double
();
...
...
dlls/vcomp/vcomp.spec
View file @
037a079f
...
...
@@ -89,7 +89,7 @@
@ cdecl _vcomp_single_begin(long)
@ cdecl _vcomp_single_end()
@ cdecl omp_destroy_lock(ptr)
@
stub omp_destroy_nest
_lock
@
cdecl omp_destroy_nest_lock(ptr) omp_destroy
_lock
@ cdecl omp_get_dynamic()
@ cdecl omp_get_max_threads()
@ cdecl omp_get_nested()
...
...
@@ -100,7 +100,7 @@
@ cdecl omp_get_wtime()
@ cdecl omp_in_parallel()
@ cdecl omp_init_lock(ptr)
@
stub omp_init_nes
t_lock
@
cdecl omp_init_nest_lock(ptr) omp_ini
t_lock
@ cdecl omp_set_dynamic(long)
@ stub omp_set_lock
@ stub omp_set_nest_lock
...
...
dlls/vcomp100/vcomp100.spec
View file @
037a079f
...
...
@@ -89,7 +89,7 @@
@ cdecl _vcomp_single_begin(long) vcomp._vcomp_single_begin
@ cdecl _vcomp_single_end() vcomp._vcomp_single_end
@ cdecl omp_destroy_lock(ptr) vcomp.omp_destroy_lock
@
stub
omp_destroy_nest_lock
@
cdecl omp_destroy_nest_lock(ptr) vcomp.
omp_destroy_nest_lock
@ cdecl omp_get_dynamic() vcomp.omp_get_dynamic
@ cdecl omp_get_max_threads() vcomp.omp_get_max_threads
@ cdecl omp_get_nested() vcomp.omp_get_nested
...
...
@@ -100,7 +100,7 @@
@ cdecl omp_get_wtime() vcomp.omp_get_wtime
@ cdecl omp_in_parallel() vcomp.omp_in_parallel
@ cdecl omp_init_lock(ptr) vcomp.omp_init_lock
@
stub
omp_init_nest_lock
@
cdecl omp_init_nest_lock(ptr) vcomp.
omp_init_nest_lock
@ cdecl omp_set_dynamic(long) vcomp.omp_set_dynamic
@ stub omp_set_lock
@ stub omp_set_nest_lock
...
...
dlls/vcomp110/vcomp110.spec
View file @
037a079f
...
...
@@ -90,7 +90,7 @@
@ cdecl _vcomp_single_begin(long) vcomp._vcomp_single_begin
@ cdecl _vcomp_single_end() vcomp._vcomp_single_end
@ cdecl omp_destroy_lock(ptr) vcomp.omp_destroy_lock
@
stub
omp_destroy_nest_lock
@
cdecl omp_destroy_nest_lock(ptr) vcomp.
omp_destroy_nest_lock
@ cdecl omp_get_dynamic() vcomp.omp_get_dynamic
@ cdecl omp_get_max_threads() vcomp.omp_get_max_threads
@ cdecl omp_get_nested() vcomp.omp_get_nested
...
...
@@ -101,7 +101,7 @@
@ cdecl omp_get_wtime() vcomp.omp_get_wtime
@ cdecl omp_in_parallel() vcomp.omp_in_parallel
@ cdecl omp_init_lock(ptr) vcomp.omp_init_lock
@
stub
omp_init_nest_lock
@
cdecl omp_init_nest_lock(ptr) vcomp.
omp_init_nest_lock
@ cdecl omp_set_dynamic(long) vcomp.omp_set_dynamic
@ stub omp_set_lock
@ stub omp_set_nest_lock
...
...
dlls/vcomp90/vcomp90.spec
View file @
037a079f
...
...
@@ -89,7 +89,7 @@
@ cdecl _vcomp_single_begin(long) vcomp._vcomp_single_begin
@ cdecl _vcomp_single_end() vcomp._vcomp_single_end
@ cdecl omp_destroy_lock(ptr) vcomp.omp_destroy_lock
@
stub
omp_destroy_nest_lock
@
cdecl omp_destroy_nest_lock(ptr) vcomp.
omp_destroy_nest_lock
@ cdecl omp_get_dynamic() vcomp.omp_get_dynamic
@ cdecl omp_get_max_threads() vcomp.omp_get_max_threads
@ cdecl omp_get_nested() vcomp.omp_get_nested
...
...
@@ -100,7 +100,7 @@
@ cdecl omp_get_wtime() vcomp.omp_get_wtime
@ cdecl omp_in_parallel() vcomp.omp_in_parallel
@ cdecl omp_init_lock(ptr) vcomp.omp_init_lock
@
stub
omp_init_nest_lock
@
cdecl omp_init_nest_lock(ptr) vcomp.
omp_init_nest_lock
@ cdecl omp_set_dynamic(long) vcomp.omp_set_dynamic
@ stub omp_set_lock
@ stub omp_set_nest_lock
...
...
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