log.inline.h 371 B

123456789101112131415161718
  1. #ifndef AFUN_LOG_INLINE_H
  2. #define AFUN_LOG_INLINE_H
  3. namespace aFuntool {
  4. inline bool LogFactory::news(){
  5. return !init || log_buf != nullptr;
  6. }
  7. inline int LogFactory::wait(){
  8. return pthread_cond_wait(&cond, &mutex);
  9. }
  10. inline bool LogFactory::stop(){
  11. return !init && log_buf == nullptr;
  12. }
  13. }
  14. #endif //AFUN_LOG_INLINE_H