30 lines
717 B
C
Raw Permalink Normal View History

2019-08-19 19:19:58 +08:00
#ifndef HGL_MULTI_PROC_FIFO_INCLUDE
#define HGL_MULTI_PROC_FIFO_INCLUDE
#include<hgl/platform/Platform.h>
namespace hgl
{
/**
*
*/
class Fifo ///命名管道通信
{
public:
char filename[HGL_MAX_PATH];
int fd;
public:
Fifo()
{
*filename=0;
fd=-1;
}
bool Create(const char *); ///<创建一个管道通信文件(注:只需要文件名,不需要完整路径)
};//namespace hgl
}//namespace hgl
#endif//HGL_MULTI_PROC_FIFO_INCLUDE