ZeroTierOne/ext/libpqxx-7.7.3/install/ubuntu22.04/include/pqxx/internal/wait.hxx
2022-06-24 10:12:36 -07:00

19 lines
521 B
C++

#if !defined(PQXX_WAIT_HXX)
# define PQXX_WAIT_HXX
namespace pqxx::internal
{
/// Wait.
/** This is normally `std::this_thread::sleep_for()`. But MinGW's `thread`
* header doesn't work, so we must be careful about including it.
*/
void PQXX_LIBEXPORT wait_for(unsigned int microseconds);
/// Wait for a socket to be ready for reading/writing, or timeout.
PQXX_LIBEXPORT void wait_fd(
int fd, bool for_read, bool for_write, unsigned seconds = 1,
unsigned microseconds = 0);
} // namespace pqxx::internal
#endif