Lines Matching defs:thread
78 pthread_t thread;
624 /* this runs in child thread */
672 /* commands sent to the gps thread */
684 // tell the thread to quit, and wait for it
688 pthread_join(s->thread, &dummy);
761 /* this is the main thread, it waits for commands from gps_state_start/stop and,
792 D("gps thread running");
813 D("gps thread received %d events", nevents);
832 D("gps thread quitting on demand");
837 D("gps thread starting location_cb=%p", state->callbacks.location_cb);
849 D("gps thread stopping");
920 ALOGE("could not create thread control socket pair: %s", strerror(errno));
930 state->thread = callbacks->create_thread_cb( "gps_state_thread", gps_state_thread, state );
932 if ( !state->thread ) {
933 ALOGE("could not create gps thread: %s", strerror(errno));
1060 /* this runs in main thread */
1071 /* this runs in main thread */