changes to support eclipse compat
support of Android assets as /assets files.
This commit is contained in:
17
C/threads.c
17
C/threads.c
@@ -90,6 +90,12 @@ Yap_ThreadID( void )
|
||||
return -1;
|
||||
}
|
||||
|
||||
int
|
||||
Yap_NOfThreads(void) {
|
||||
// GLOBAL_ThreadHandlesLock is held
|
||||
return GLOBAL_NOfThreads;
|
||||
}
|
||||
|
||||
static int
|
||||
allocate_new_tid(void)
|
||||
{
|
||||
@@ -1090,6 +1096,17 @@ void Yap_InitThreadPreds(void)
|
||||
|
||||
#else
|
||||
|
||||
int
|
||||
Yap_NOfThreads(void) {
|
||||
// GLOBAL_ThreadHandlesLock is held
|
||||
#ifdef YAPOR
|
||||
return 2;
|
||||
#else
|
||||
return 1;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
static Int
|
||||
p_no_threads(void)
|
||||
{ /* '$thread_signal'(+P) */
|
||||
|
Reference in New Issue
Block a user