TreeFrogFramework: src/tfcore.h Source File

Go to the documentation of this file.

1#pragma once

2#include <TWebApplication>

3#include <TAbstractController>

4#include <TAbstractActionContext>

5#include <TAtomic>

6#include <TAccessLog>

7#include <QtGlobal>

8#include <cerrno>

9#include <cstdio>

10#include <cstring>

11

12#define TF_EINTR_LOOP(func) \

13 int ret; \

14 do { \

15 errno = 0; \

16 ret = (func); \

17 } while (ret < 0 && errno == EINTR); \

18 return ret;

19

20#define TF_EAGAIN_LOOP(func) \

21 int ret; \

22 do { \

23 errno = 0; \

24 ret = (func); \

25 } while (ret < 0 && (errno == EINTR || errno == EAGAIN)); \

26 return ret;

27

28

29#ifdef Q_OS_UNIX

31#endif

32#ifdef Q_OS_WIN

34#endif