Changeset 7952 for trunk/Ohana/src/opihi/pantasks/pantasks_server.c
- Timestamp:
- Jul 23, 2006, 3:05:21 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/pantasks/pantasks_server.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/pantasks/pantasks_server.c
r7940 r7952 16 16 int main (int argc, char **argv) { 17 17 18 pthread_t thread; 18 pthread_t clientsThread; 19 pthread_t tasksThread; 20 pthread_t jobsThread; 21 pthread_t inputsThread; 22 pthread_t controllerThread; 19 23 int InitSocket, BindSocket; 20 24 SockAddress Address; … … 32 36 33 37 gprintInit (); // each thread needs to init the printing system 38 InitInputs (); 34 39 35 40 signal (SIGPIPE, gotsignal); … … 38 43 signal (SIGINT, SIG_DFL); 39 44 40 // startup (&argc, argv); 41 42 /* set up mechanisms for sharing data between the threads */ 43 // init_data_handling (); 45 startup (&argc, argv); 44 46 45 47 /* start up the background threads here */ 46 pthread_create (&thread, NULL, &ListenClients, NULL); 47 48 // pthread_create (&thread, NULL, &RunScheduler, NULL); 49 // pthread_create (&thread, NULL, &RunController, NULL); 48 pthread_create (&clientsThread, NULL, &ListenClients, NULL); 49 pthread_create (&tasksThread, NULL, &CheckTasksThread, NULL); 50 pthread_create (&jobsThread, NULL, &CheckJobsThread, NULL); 51 pthread_create (&controllerThread, NULL, &CheckControllerThread, NULL); 52 pthread_create (&inputsThread, NULL, &CheckInputsThread, NULL); 50 53 51 54 /* in this loop, we listen for incoming connections, validate, and
Note:
See TracChangeset
for help on using the changeset viewer.
