Changeset 6674 for trunk/Ohana/src/addstar/src/addstart.c
- Timestamp:
- Mar 24, 2006, 2:42:35 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/addstar/src/addstart.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/addstar/src/addstart.c
r6498 r6674 1 1 # include "addstar.h" 2 # include <pthread.h> 2 3 3 4 int main (int argc, char **argv) { 4 5 5 int status, InitSocket, BindSocket;6 SockAddress Address;7 IOBuffer message;8 6 AddstarClientOptions options; 7 pthread_t thread; 8 DVO_DATA *dataset; 9 // pthread_attr_t attr; 9 10 10 11 options = ConfigInit (&argc, argv); … … 13 14 /* store the sky table in a global for internal use */ 14 15 ServerSky = SkyTableLoadOptimal (CATDIR, SKY_TABLE, GSCFILE, SKY_DEPTH, VERBOSE); 15 SkyTableSetFilename (ServerSky, CATDIR, "cpt");16 SkyTableSetFilenames (ServerSky, CATDIR, "cpt"); 16 17 17 18 VERBOSE = TRUE; … … 24 25 25 26 /* decide if we need an argument to dbthread */ 26 pthread_create ( thread, attr,ListenClients_Thread, NULL);27 pthread_create (&thread, NULL, &ListenClients_Thread, NULL); 27 28 28 29 while (1) {
Note:
See TracChangeset
for help on using the changeset viewer.
