* Hope this is the last bug fix in the wxThread merge ...

* configure updated
* some function added in utilsgtk.cpp (wxSleep, wxKill)
* wxThread sample v0.1


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@106 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Guilhem Lavaux
1998-06-16 17:17:02 +00:00
parent d1c9bbf64d
commit 82052affa7
27 changed files with 1084 additions and 412 deletions

View File

@@ -56,8 +56,6 @@
* Use Threads
*/
#undef USE_THREADS
#undef USE_THREADS_POSIX
#undef USE_THREADS_SGI
/*
* Use storable classes
*/

View File

@@ -16,6 +16,9 @@
#include <unistd.h>
#include <sched.h>
#include <pthread.h>
#include "wx/thread.h"
#include "wx/module.h"
#include "wx/utils.h"
enum thread_state {
STATE_IDLE = 0,
@@ -28,8 +31,6 @@ enum thread_state {
// Static variables
/////////////////////////////////////////////////////////////////////////////
#include "wx/thread.h"
static pthread_t p_mainid;
wxMutex wxMainMutex; // controls access to all GUI functions

View File

@@ -18,6 +18,9 @@
#include <signal.h>
#include <sys/wait.h>
#include <sys/prctl.h>
#include "wx/thread.h"
#include "wx/module.h"
#include "wx/utils.h"
enum thread_state {
STATE_IDLE = 0,
@@ -30,8 +33,6 @@ enum thread_state {
// Static variables
/////////////////////////////////////////////////////////////////////////////
#include "wx/thread.h"
static int p_mainid;
wxMutex wxMainMutex;

View File

@@ -26,6 +26,7 @@
#include <pwd.h>
#include <errno.h>
#include <netdb.h>
#include <signal.h>
#ifdef __SVR4__
#include <sys/systeminfo.h>
@@ -40,6 +41,16 @@ void wxBell(void)
gdk_beep();
};
void wxSleep(int nSecs)
{
sleep(nSecs);
};
int wxKill(long pid, int sig)
{
return kill(pid, sig);
};
//------------------------------------------------------------------------
// user and home routines
//------------------------------------------------------------------------