Home | History | Annotate | Download | only in src

Lines Matching refs:LOGGER_ASSERT

49   LOGGER_ASSERT(!thread_running_);
51 LOGGER_ASSERT(0 == pthread_create(&thread_, NULL, &StartRoutine, this));
55 LOGGER_ASSERT(thread_running_);
57 LOGGER_ASSERT(0 == pthread_mutex_lock(&queued_lines_mutex_));
60 LOGGER_ASSERT(0 == pthread_mutex_unlock(&queued_lines_mutex_));
62 LOGGER_ASSERT(0 == pthread_cond_signal(&queued_lines_cond_));
64 LOGGER_ASSERT(0 == pthread_join(thread_, NULL));
68 LOGGER_ASSERT(0 == pthread_mutex_init(&queued_lines_mutex_, NULL));
69 LOGGER_ASSERT(0 == pthread_cond_init(&queued_lines_cond_, NULL));
70 LOGGER_ASSERT(0 == pthread_cond_init(&full_queue_cond_, NULL));
74 LOGGER_ASSERT(0 == pthread_mutex_destroy(&queued_lines_mutex_));
75 LOGGER_ASSERT(0 == pthread_cond_destroy(&queued_lines_cond_));
76 LOGGER_ASSERT(0 == pthread_cond_destroy(&full_queue_cond_));
80 LOGGER_ASSERT(line != NULL);
81 LOGGER_ASSERT(0 == pthread_mutex_lock(&queued_lines_mutex_));
84 LOGGER_ASSERT(0 == pthread_cond_wait(&full_queue_cond_,
88 LOGGER_ASSERT(0 == pthread_cond_signal(&queued_lines_cond_));
94 LOGGER_ASSERT(0 == pthread_mutex_unlock(&queued_lines_mutex_));
99 LOGGER_ASSERT(write(fd, line.data(), line.size()) ==
105 LOGGER_ASSERT(line != NULL);
121 LOGGER_ASSERT(0 == pthread_mutex_lock(&queued_lines_mutex_));
125 LOGGER_ASSERT(0 == pthread_cond_wait(&queued_lines_cond_,
135 LOGGER_ASSERT(0 == pthread_cond_broadcast(&full_queue_cond_));
139 LOGGER_ASSERT(0 == pthread_mutex_unlock(&queued_lines_mutex_));
150 LOGGER_ASSERT(0 == pthread_mutex_lock(&queued_lines_mutex_));