diff options
author | Oliver Stöneberg <oliverst@online.de> | 2015-01-08 10:08:00 +0100 |
---|---|---|
committer | Oliver Stöneberg <oliverst@online.de> | 2015-01-08 10:08:00 +0100 |
commit | 3908aa8ccf52256c3d5fa02c343aff0351d90005 (patch) | |
tree | 7882807293f2059464e0d5318bd6bdc2bba9b4ba | |
parent | 2550eee8fe36d1b3ea8a21bcc11cea98d150222c (diff) |
sync: cleanups (nw)
-rw-r--r-- | src/osd/modules/sync/osdsync.h | 2 | ||||
-rw-r--r-- | 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)); |