Lines Matching defs:ts
81 tsd_t *ts = (tsd_t *)tsd;
84 ts->ts_threads = calloc(lm_optB, sizeof (pthread_t));
85 (void) pthread_mutex_init(&ts->ts_lock, NULL);
88 ts->ts_attr = malloc(sizeof (pthread_attr_t));
89 (void) pthread_attr_init(ts->ts_attr);
90 if ((errors = pthread_attr_setstacksize(ts->ts_attr, opts))
96 ts->ts_attr = NULL;
104 tsd_t *ts = (tsd_t *)tsd;
106 (void) pthread_mutex_lock(&ts->ts_lock);
115 tsd_t *ts = (tsd_t *)tsd;
117 (void) pthread_mutex_lock(&ts->ts_lock);
118 (void) pthread_mutex_unlock(&ts->ts_lock);
127 tsd_t *ts = (tsd_t *)tsd;
131 if ((error = pthread_create(ts->ts_threads + i,
132 ts->ts_attr, func, tsd)) != 0) {
135 ts->ts_threads[i] = 0;
148 tsd_t *ts = (tsd_t *)tsd;
152 (void) pthread_mutex_unlock(&ts->ts_lock);
155 if (ts->ts_threads[i] == 0 ||
156 pthread_join(ts->ts_threads[i], NULL) < 0) {