From bf4daa339563f2bce883e7210d54cea331f7867c Mon Sep 17 00:00:00 2001 From: Sebastian Lackner Date: Fri, 7 Aug 2015 08:20:27 +0200 Subject: [PATCH] vcomp: Implement _vcomp_master_begin and _vcomp_master_end. --- dlls/vcomp/main.c | 12 ++++++++++++ dlls/vcomp/vcomp.spec | 4 ++-- dlls/vcomp100/vcomp100.spec | 4 ++-- dlls/vcomp110/vcomp110.spec | 4 ++-- dlls/vcomp90/vcomp90.spec | 4 ++-- 5 files changed, 20 insertions(+), 8 deletions(-) diff --git a/dlls/vcomp/main.c b/dlls/vcomp/main.c index 42b116b24bc..1e69e31e028 100644 --- a/dlls/vcomp/main.c +++ b/dlls/vcomp/main.c @@ -489,6 +489,18 @@ void CDECL _vcomp_set_num_threads(int num_threads) vcomp_init_thread_data()->fork_threads = num_threads; } +int CDECL _vcomp_master_begin(void) +{ + TRACE("()\n"); + return !vcomp_init_thread_data()->thread_num; +} + +void CDECL _vcomp_master_end(void) +{ + TRACE("()\n"); + /* nothing to do here */ +} + int CDECL _vcomp_single_begin(int flags) { TRACE("(%x): stub\n", flags); diff --git a/dlls/vcomp/vcomp.spec b/dlls/vcomp/vcomp.spec index 6e2fcec1aff..31678396ab6 100644 --- a/dlls/vcomp/vcomp.spec +++ b/dlls/vcomp/vcomp.spec @@ -68,8 +68,8 @@ @ stub _vcomp_get_thread_num @ stub _vcomp_leave_critsect @ stub _vcomp_master_barrier -@ stub _vcomp_master_begin -@ stub _vcomp_master_end +@ cdecl _vcomp_master_begin() +@ cdecl _vcomp_master_end() @ stub _vcomp_ordered_begin @ stub _vcomp_ordered_end @ stub _vcomp_ordered_loop_end diff --git a/dlls/vcomp100/vcomp100.spec b/dlls/vcomp100/vcomp100.spec index a9a07e10d79..38578b9a539 100644 --- a/dlls/vcomp100/vcomp100.spec +++ b/dlls/vcomp100/vcomp100.spec @@ -68,8 +68,8 @@ @ stub _vcomp_get_thread_num @ stub _vcomp_leave_critsect @ stub _vcomp_master_barrier -@ stub _vcomp_master_begin -@ stub _vcomp_master_end +@ cdecl _vcomp_master_begin() vcomp._vcomp_master_begin +@ cdecl _vcomp_master_end() vcomp._vcomp_master_end @ stub _vcomp_ordered_begin @ stub _vcomp_ordered_end @ stub _vcomp_ordered_loop_end diff --git a/dlls/vcomp110/vcomp110.spec b/dlls/vcomp110/vcomp110.spec index 5373420196f..ef8222f8584 100644 --- a/dlls/vcomp110/vcomp110.spec +++ b/dlls/vcomp110/vcomp110.spec @@ -69,8 +69,8 @@ @ stub _vcomp_get_thread_num @ stub _vcomp_leave_critsect @ stub _vcomp_master_barrier -@ stub _vcomp_master_begin -@ stub _vcomp_master_end +@ cdecl _vcomp_master_begin() vcomp._vcomp_master_begin +@ cdecl _vcomp_master_end() vcomp._vcomp_master_end @ stub _vcomp_ordered_begin @ stub _vcomp_ordered_end @ stub _vcomp_ordered_loop_end diff --git a/dlls/vcomp90/vcomp90.spec b/dlls/vcomp90/vcomp90.spec index a9a07e10d79..38578b9a539 100644 --- a/dlls/vcomp90/vcomp90.spec +++ b/dlls/vcomp90/vcomp90.spec @@ -68,8 +68,8 @@ @ stub _vcomp_get_thread_num @ stub _vcomp_leave_critsect @ stub _vcomp_master_barrier -@ stub _vcomp_master_begin -@ stub _vcomp_master_end +@ cdecl _vcomp_master_begin() vcomp._vcomp_master_begin +@ cdecl _vcomp_master_end() vcomp._vcomp_master_end @ stub _vcomp_ordered_begin @ stub _vcomp_ordered_end @ stub _vcomp_ordered_loop_end