forked from enlightenment/efl
Evas : evas_preload.c : Fix compilation when --disable-async-preload is passed to configure.
SVN revision: 59786
This commit is contained in:
parent
8b2ccb3dee
commit
4963571e08
|
@ -384,3 +384,6 @@
|
|||
|
||||
* Textblock: Added support for numeric escape codes. e.g "<".
|
||||
|
||||
2011-05-29 Vincent Torri
|
||||
|
||||
* Fix compilation when --disable-async-preload is passed to configure.
|
||||
|
|
|
@ -17,10 +17,10 @@
|
|||
#include "evas_private.h"
|
||||
#include "Evas.h"
|
||||
|
||||
static int _threads_max = 0;
|
||||
|
||||
#ifdef BUILD_ASYNC_PRELOAD
|
||||
|
||||
static int _threads_max = 0;
|
||||
|
||||
typedef struct _Evas_Preload_Pthread_Worker Evas_Preload_Pthread_Worker;
|
||||
typedef struct _Evas_Preload_Pthread_Data Evas_Preload_Pthread_Data;
|
||||
|
||||
|
@ -128,10 +128,12 @@ on_error:
|
|||
void
|
||||
_evas_preload_thread_init(void)
|
||||
{
|
||||
#ifdef BUILD_ASYNC_PRELOAD
|
||||
_threads_max = eina_cpu_count();
|
||||
if (_threads_max < 1) _threads_max = 1;
|
||||
|
||||
LKI(_mutex);
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in New Issue