mod/maxgui.mod/fltkmaxgui.mod/src/Fl_mac.cxx
void DataReady::StartThread(void *new_userdata)
{
  CancelThread(DEBUGTEXT("STARTING NEW THREAD\n"));
  DataLock();
  /*LOCK*/  pipe(_cancelpipe);	// pipe for sending cancel msg to thread
  /*LOCK*/  _userdata = new_userdata;
  DataUnlock();
  DEBUGMSG("*** START THREAD\n");
  pthread_create(&tid, NULL, DataReadyThread, (void*)this);
}
// START 'DATA READY' THREAD RUNNING, CREATE INTER-THREAD PIPE
START 'DATA READY' THREAD RUNNING, CREATE INTER-THREAD PIPE
START ' DATA READY ' THREAD RUNNING CREATE INTER - THREAD PIPE
void DataReady::StartThread(void *new_userdata)
{
  CancelThread(DEBUGTEXT("STARTING NEW THREAD\n"));
  DataLock();
    pipe(_cancelpipe);	
    _userdata = new_userdata;
  DataUnlock();
  DEBUGMSG("*** START THREAD\n");
  pthread_create(&tid, NULL, DataReadyThread, (void*)this);
}
void DataReady :: StartThread ( void * new_userdata ) { CancelThread ( DEBUGTEXT ( " \n " ) ) ; DataLock ( ) ; pipe ( _cancelpipe ) ; _userdata = new_userdata ; DataUnlock ( ) ; DEBUGMSG ( " \n " ) ; pthread_create ( & tid , NULL , DataReadyThread , ( void * ) this ) ; }
START 'DATA READY' THREAD RUNNING, CREATE INTER-THREAD PIPE
START ' DATA READY ' THREAD RUNNING CREATE INTER - THREAD PIPE
/*LOCK*/ // pipe for sending cancel msg to thread /*LOCK*/