version 1.1, 2000/11/22 06:20:13 |
version 1.4, 2002/10/03 03:05:44 |
|
|
#include <io.h> |
#include <io.h> |
#include <fcntl.h> |
#include <fcntl.h> |
#include <process.h> |
#include <process.h> |
#include "../asir2000/include/ca.h" |
#include "ca.h" |
|
|
/* error message structure */ |
/* error message structure */ |
|
|
Line 54 static HANDLE hNotify0,hNotify_Ack0,hIntr0; |
|
Line 54 static HANDLE hNotify0,hNotify_Ack0,hIntr0; |
|
static HANDLE hDebugNotify,hDebugNotify_Ack,hDebugIntr,hDebugIntr_Ack,hDebugKill; |
static HANDLE hDebugNotify,hDebugNotify_Ack,hDebugIntr,hDebugIntr_Ack,hDebugKill; |
|
|
HANDLE hResizeNotify,hResizeNotify_Ack; /* should be visible from another file */ |
HANDLE hResizeNotify,hResizeNotify_Ack; /* should be visible from another file */ |
|
HANDLE hMainThreadReady,hCanvasCreated; /* notification for ox_plot */ |
|
|
/* XXX */ |
/* XXX */ |
extern HANDLE hStreamNotify,hStreamNotify_Ack; /* declared in io/ox.c */ |
extern HANDLE hStreamNotify,hStreamNotify_Ack; /* declared in io/ox.c */ |
|
|
void AsirMain(int argc, char **argv) |
void AsirMain(int argc, char **argv) |
{ |
{ |
DWORD tid; |
DWORD tid; |
int ret; |
|
|
|
hRead = (void *)atoi(__argv[1]); |
hRead = (void *)atoi(__argv[1]); |
hWrite = (void *)atoi(__argv[2]); |
hWrite = (void *)atoi(__argv[2]); |
Line 378 void OxAsirMain(int argc, char **argv) |
|
Line 378 void OxAsirMain(int argc, char **argv) |
|
{ |
{ |
int create_message; |
int create_message; |
int tid; |
int tid; |
int ret; |
|
|
|
ox_sock_id = atoi(__argv[1]); |
ox_sock_id = atoi(__argv[1]); |
create_message = atoi(__argv[2]); |
create_message = atoi(__argv[2]); |
Line 410 void OxPlotMain(int argc, char **argv) |
|
Line 409 void OxPlotMain(int argc, char **argv) |
|
DWORD tid; |
DWORD tid; |
DWORD mypid; |
DWORD mypid; |
char eventname[BUFSIZ]; |
char eventname[BUFSIZ]; |
int ret; |
|
|
|
ox_sock_id = atoi(argv[1]); |
ox_sock_id = atoi(argv[1]); |
do_message = atoi(argv[2]); |
do_message = atoi(argv[2]); |
Line 434 void OxPlotMain(int argc, char **argv) |
|
Line 432 void OxPlotMain(int argc, char **argv) |
|
hResizeNotify = CreateEvent(NULL,TRUE,FALSE,eventname); |
hResizeNotify = CreateEvent(NULL,TRUE,FALSE,eventname); |
sprintf(eventname,"resize_notify_ack_%d",mypid); |
sprintf(eventname,"resize_notify_ack_%d",mypid); |
hResizeNotify_Ack = CreateEvent(NULL,TRUE,FALSE,eventname); |
hResizeNotify_Ack = CreateEvent(NULL,TRUE,FALSE,eventname); |
|
sprintf(eventname,"mainthreadready_%d",mypid); |
|
hMainThreadReady = CreateEvent(NULL,TRUE,FALSE,eventname); |
|
sprintf(eventname,"canvascreated_%d",mypid); |
|
hCanvasCreated = CreateEvent(NULL,TRUE,FALSE,eventname); |
|
|
hWatchStreamThread = CreateThread(NULL,0,(LPTHREAD_START_ROUTINE)ox_watch_stream,NULL,0,&tid); |
hWatchStreamThread = CreateThread(NULL,0,(LPTHREAD_START_ROUTINE)ox_watch_stream,NULL,0,&tid); |
// ret = SetThreadPriority(hWatchStreamThread,THREAD_PRIORITY_BELOW_NORMAL); |
// ret = SetThreadPriority(hWatchStreamThread,THREAD_PRIORITY_BELOW_NORMAL); |
Line 446 void OxPlotMain(int argc, char **argv) |
|
Line 448 void OxPlotMain(int argc, char **argv) |
|
|
|
/* process_args() increments argv */ |
/* process_args() increments argv */ |
plot_argc = argc-5; |
plot_argc = argc-5; |
plot_argv = argc+5; |
plot_argv = argv+5; |
hComputingThread = CreateThread(NULL,0,(LPTHREAD_START_ROUTINE)ox_plot_main,NULL,0,&tid); |
hComputingThread = CreateThread(NULL,0,(LPTHREAD_START_ROUTINE)ox_plot_main,NULL,0,&tid); |
// ret = SetThreadPriority(hComputingThread,THREAD_PRIORITY_ABOVE_NORMAL); |
// ret = SetThreadPriority(hComputingThread,THREAD_PRIORITY_ABOVE_NORMAL); |
// if ( !ret ) |
// if ( !ret ) |
Line 558 void set_error(int id,char *reason,char *action) |
|
Line 560 void set_error(int id,char *reason,char *action) |
|
} |
} |
|
|
/* dummy functions */ |
/* dummy functions */ |
reset_current_computation(){} |
void reset_current_computation(){} |
set_selection(){} |
void set_selection(){} |
reset_selection(){} |
void reset_selection(){} |
set_busy(){} |
void set_busy(){} |
reset_busy(){} |
void reset_busy(){} |