From 3908aa8ccf52256c3d5fa02c343aff0351d90005 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20St=C3=B6neberg?= Date: Thu, 8 Jan 2015 10:08:00 +0100 Subject: sync: cleanups (nw) --- src/osd/modules/sync/osdsync.h | 2 +- src/osd/modules/sync/work_osd.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/osd/modules/sync/osdsync.h b/src/osd/modules/sync/osdsync.h index 724918d10e6..209f2f9b8bf 100644 --- a/src/osd/modules/sync/osdsync.h +++ b/src/osd/modules/sync/osdsync.h @@ -1,6 +1,6 @@ //============================================================ // -// winsync.h - Windows core synchronization functions +// osdsync.h - Core synchronization functions // // Copyright (c) 1996-2014, Nicola Salmoria and the MAME Team. // Visit http://mamedev.org for licensing and usage restrictions. diff --git a/src/osd/modules/sync/work_osd.c b/src/osd/modules/sync/work_osd.c index cb48614b229..031884e3dd5 100644 --- a/src/osd/modules/sync/work_osd.c +++ b/src/osd/modules/sync/work_osd.c @@ -52,6 +52,7 @@ typedef void *PVOID; //============================================================ #define ENV_PROCESSORS "OSDPROCESSORS" +#define ENV_WORKQUEUEMAXTHREADS "OSDWORKQUEUEMAXTHREADS" // TODO: use either // TODO: make configurable via environment for tests @@ -181,7 +182,7 @@ osd_work_queue *osd_work_queue_alloc(int flags) osd_work_queue *queue; int osdthreadnum = 0; int allocthreadnum; - char *osdworkqueuemaxthreads = osd_getenv("OSDWORKQUEUEMAXTHREADS"); + char *osdworkqueuemaxthreads = osd_getenv(ENV_WORKQUEUEMAXTHREADS); // allocate a new queue queue = (osd_work_queue *)osd_malloc(sizeof(*queue)); -- cgit v1.2.3