[2/8] vcomp: Implement omp_{get,set}_nested.

Sebastian Lackner sebastian at fds-team.de
Tue Jul 14 14:39:46 CDT 2015


---
 dlls/vcomp/main.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/dlls/vcomp/main.c b/dlls/vcomp/main.c
index 5a50486..b827920 100644
--- a/dlls/vcomp/main.c
+++ b/dlls/vcomp/main.c
@@ -31,6 +31,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(vcomp);
 
 static int     vcomp_max_threads;
 static int     vcomp_num_threads;
+static BOOL    vcomp_nested_fork = FALSE;
 
 int CDECL omp_get_dynamic(void)
 {
@@ -47,7 +48,7 @@ int CDECL omp_get_max_threads(void)
 int CDECL omp_get_nested(void)
 {
     TRACE("stub\n");
-    return 0;
+    return vcomp_nested_fork;
 }
 
 int CDECL omp_get_num_procs(void)
@@ -81,7 +82,8 @@ void CDECL omp_set_dynamic(int val)
 
 void CDECL omp_set_nested(int nested)
 {
-    TRACE("(%d): stub\n", nested);
+    TRACE("(%d)\n", nested);
+    vcomp_nested_fork = (nested != 0);
 }
 
 void CDECL omp_set_num_threads(int num_threads)
-- 
2.4.5



More information about the wine-patches mailing list