loader: Add stub versions of the pthread functions.
This commit is contained in:
parent
ef07d83405
commit
679aab877f
|
@ -21,8 +21,6 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "wine/port.h"
|
#include "wine/port.h"
|
||||||
|
|
||||||
#ifdef HAVE_PTHREAD_H
|
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
@ -45,6 +43,8 @@
|
||||||
#include "wine/library.h"
|
#include "wine/library.h"
|
||||||
#include "wine/pthread.h"
|
#include "wine/pthread.h"
|
||||||
|
|
||||||
|
#ifdef HAVE_PTHREAD_H
|
||||||
|
|
||||||
static int init_done;
|
static int init_done;
|
||||||
static int nb_threads = 1;
|
static int nb_threads = 1;
|
||||||
|
|
||||||
|
@ -201,6 +201,47 @@ static void DECLSPEC_NORETURN abort_thread( long status )
|
||||||
pthread_exit( (void *)status );
|
pthread_exit( (void *)status );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#else /* HAVE_PTHREAD_H */
|
||||||
|
|
||||||
|
static void init_process( const struct wine_pthread_callbacks *callbacks, size_t size )
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
static void init_thread( struct wine_pthread_thread_info *info )
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
static int create_thread( struct wine_pthread_thread_info *info )
|
||||||
|
{
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
static void init_current_teb( struct wine_pthread_thread_info *info )
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
static void *get_current_teb(void)
|
||||||
|
{
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
static void DECLSPEC_NORETURN exit_thread( struct wine_pthread_thread_info *info )
|
||||||
|
{
|
||||||
|
abort();
|
||||||
|
}
|
||||||
|
|
||||||
|
static void DECLSPEC_NORETURN abort_thread( long status )
|
||||||
|
{
|
||||||
|
abort();
|
||||||
|
}
|
||||||
|
|
||||||
|
static int pthread_sigmask( int how, const sigset_t *newset, sigset_t *oldset )
|
||||||
|
{
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif /* HAVE_PTHREAD_H */
|
||||||
|
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
* pthread_functions
|
* pthread_functions
|
||||||
|
@ -216,5 +257,3 @@ const struct wine_pthread_functions pthread_functions =
|
||||||
abort_thread,
|
abort_thread,
|
||||||
pthread_sigmask
|
pthread_sigmask
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* HAVE_PTHREAD_H */
|
|
||||||
|
|
Loading…
Reference in New Issue