1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/thirdparty/photon/photonwrapper.h

36 lines
516 B
C
Raw Normal View History

2023-05-28 00:33:46 +03:00
#ifndef C_PHOTONWRAPPER_H_
#define C_PHOTONWRAPPER_H_
#ifdef __cplusplus
#include <fcntl.h>
//#include <vector>
#include <photon/thread/std-compat.h>
#include <photon/common/alog.h>
#include <photon/common/iovector.h>
#include <photon/fs/localfs.h>
#include <photon/net/socket.h>
#include <iostream>
extern "C" {
#else
2023-05-28 03:44:47 +03:00
#endif
2023-05-28 00:33:46 +03:00
int photon_init_default();
2023-05-28 06:30:23 +03:00
void photon_thread_create(void* (* f)(void*), void* arg);
2023-05-28 00:33:46 +03:00
void photon_sleep_s(int n);
void photon_sleep_ms(int n);
#ifdef __cplusplus
}
#endif
#endif