Doxygen Source Code Documentation
wptest.c File Reference
#include <X11/Intrinsic.h>#include <stdio.h>Go to the source code of this file.
Defines | |
| #define | WMAX 4 |
Functions | |
| Boolean | workproc_A (XtPointer) |
| Boolean | workproc_B (XtPointer) |
| void | killit_CB (XtPointer, XtIntervalId *) |
| int | main (int argc, char *argv[]) |
Variables | |
| XtAppContext | app |
Define Documentation
|
|
Definition at line 36 of file wptest.c. Referenced by workproc_A(), and workproc_B(). |
Function Documentation
|
||||||||||||
|
Definition at line 31 of file wptest.c. References zork. Referenced by main().
00032 { exit(0) ; }
|
|
||||||||||||
|
Definition at line 12 of file wptest.c. References app, argc, killit_CB(), and workproc_A().
00013 {
00014 Widget wid ;
00015
00016 wid = XtVaAppInitialize(
00017 &app, "Elvis", NULL, 0, &argc, argv, NULL, NULL ) ;
00018 if( wid == NULL ){
00019 fprintf(stderr,"*** Cannot initialize X11!\n") ; exit(1) ;
00020 }
00021
00022 XtAppAddTimeOut( app , 1234 , killit_CB , NULL ) ;
00023
00024 XtAppAddWorkProc( app, workproc_A, NULL ) ;
00025 XtAppMainLoop(app) ;
00026 exit(0) ;
00027 }
|
|
|
Definition at line 38 of file wptest.c. References app, WMAX, and workproc_B(). Referenced by main().
00039 {
00040 static int ncall=0 ;
00041
00042 if( ncall == 0 ) XtAppAddWorkProc( app, workproc_B, NULL ) ;
00043 ncall++ ; printf("workproc_A: %d\n",ncall) ;
00044 return (ncall < WMAX) ? False : True ;
00045 }
|
|
|
Definition at line 49 of file wptest.c. References WMAX. Referenced by workproc_A().
00050 {
00051 static int ncall=0 ;
00052 ncall++ ; printf("workproc_B: %d\n",ncall) ;
00053 return (ncall < WMAX) ? False : True ;
00054 }
|
Variable Documentation
|
|
Definition at line 8 of file wptest.c. Referenced by main(), and workproc_A(). |