text: #include <WebServer/base/Condition.h>
  #include <errno.h>
  
  using namespace ywl;
  bool Condition::waitForSeconds(int seconds)
  {
      struct timespec abstime;
      clock_gettime(CLOCK_REALTIME, &abstime);
      abstime.tv_sec += seconds;
      return ETIMEDOUT == pthread_cond_timedwait(&pcond_, mutex_.getPthreadMutex(), &abstime);
  }
  