first commit

This commit is contained in:
2019-08-19 19:19:58 +08:00
parent 7bb6b54204
commit 2b71bf8135
145 changed files with 23208 additions and 0 deletions

24
inc/hgl/proc/Pipe.h Normal file
View File

@@ -0,0 +1,24 @@
#ifndef HGL_MULTI_PROC_PIPE_INCLUDE
#define HGL_MULTI_PROC_PIPE_INCLUDE
#include<hgl/platform/Platform.h>
#if HGL_OS==HGL_OS_Windows
#include<windows.h>
#endif//
namespace hgl
{
#if HGL_OS==HGL_OS_Windows
using pipe_ptr=HANDLE;
constexpr pipe_ptr PIPE_NULL=nullptr;
#else
using pipe_ptr=int;
constexpr pipe_ptr PIPE_NULL=-1;
#endif//
using pipe_pair=pipe_ptr[2];
bool CreatePipe(pipe_pair &); ///<创建一对通信管道
}//namespace hgl
#endif//HGL_MULTI_PROC_PIPE_INCLUDE