Module: wine Branch: master Commit: 800ca050dfeea9f08bb35b5aac87ca7856ef2218 URL: http://source.winehq.org/git/wine.git/?a=commit;h=800ca050dfeea9f08bb35b5aac... Author: Sebastian Lackner <sebastian(a)fds-team.de> Date: Tue Jul 14 21:39:46 2015 +0200 vcomp: Implement omp_{get,set}_nested. --- 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)