vcomp: Add _vcomp_enter_critsect, _vcomp_leave_critsect, omp_init_lock stubs

Andrey Gusev andrey.goosev at gmail.com
Sat Mar 14 09:00:30 CDT 2015


Based on an old patch from Dan Kegel with the addition.
Fixes https://bugs.winehq.org/show_bug.cgi?id=36457
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20150314/a90d237f/attachment.html>
-------------- next part --------------
From b4c7617b344ee0dcdb058030b19ede5101787824 Mon Sep 17 00:00:00 2001
Message-Id: <b4c7617b344ee0dcdb058030b19ede5101787824.1426341234.git.andrey.goosev at gmail.com>
From: Andrey Gusev <andrey.goosev at gmail.com>
Date: Sat, 14 Mar 2015 15:53:29 +0200
Subject: [PATCH] vcomp: Add _vcomp_enter_critsect, _vcomp_leave_critsect,
 omp_init_lock stubs

---
 dlls/vcomp/main.c     | 15 +++++++++++++++
 dlls/vcomp/vcomp.spec |  6 +++---
 2 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/dlls/vcomp/main.c b/dlls/vcomp/main.c
index ab2a372..3c43a4e 100644
--- a/dlls/vcomp/main.c
+++ b/dlls/vcomp/main.c
@@ -71,6 +71,11 @@ double CDECL omp_get_wtime(void)
     return GetTickCount() / 1000.0;
 }
 
+void CDECL omp_init_lock(int lock)
+{
+    TRACE("(%d): stub\n", lock);
+}
+
 void CDECL omp_set_dynamic(int val)
 {
     TRACE("(%d): stub\n", val);
@@ -91,6 +96,16 @@ void CDECL _vcomp_barrier(void)
     TRACE("stub\n");
 }
 
+void CDECL _vcomp_enter_critsect(void *section)
+{
+    TRACE("(%p): stub\n", section);
+}
+
+void CDECL _vcomp_leave_critsect(void *section)
+{
+    TRACE("(%p): stub\n", section);
+}
+
 void CDECL _vcomp_set_num_threads(int num_threads)
 {
     TRACE("(%d): stub\n", num_threads);
diff --git a/dlls/vcomp/vcomp.spec b/dlls/vcomp/vcomp.spec
index 306dd15..c8dc40c 100644
--- a/dlls/vcomp/vcomp.spec
+++ b/dlls/vcomp/vcomp.spec
@@ -53,7 +53,7 @@
 @ cdecl _vcomp_barrier()
 @ stub _vcomp_copyprivate_broadcast
 @ stub _vcomp_copyprivate_receive
-@ stub _vcomp_enter_critsect
+@ cdecl _vcomp_enter_critsect(ptr)
 @ stub _vcomp_flush
 @ stub _vcomp_for_dynamic_init
 @ stub _vcomp_for_dynamic_init_i8
@@ -66,7 +66,7 @@
 @ stub _vcomp_for_static_simple_init_i8
 @ stub _vcomp_fork
 @ stub _vcomp_get_thread_num
-@ stub _vcomp_leave_critsect
+@ cdecl _vcomp_leave_critsect(ptr)
 @ stub _vcomp_master_barrier
 @ stub _vcomp_master_begin
 @ stub _vcomp_master_end
@@ -99,7 +99,7 @@
 @ stub omp_get_wtick
 @ cdecl omp_get_wtime()
 @ stub omp_in_parallel
-@ stub omp_init_lock
+@ cdecl omp_init_lock(long)
 @ stub omp_init_nest_lock
 @ cdecl omp_set_dynamic(long)
 @ stub omp_set_lock
-- 
2.1.0



More information about the wine-patches mailing list