This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef __CircularBuffer_H__ | |
#define __CircularBuffer_H__ | |
//****************************************************************************** | |
#include <atomic> | |
#include <climits> | |
template <class T, unsigned long N> | |
class CCircularBuffer { | |
private: | |
static constexpr auto MODULO = ULONG_MAX - (ULONG_MAX % N); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef __SYSCALL_H__ | |
#define __SYSCALL_H__ | |
#ifdef __cplusplus | |
extern "C" { | |
#endif | |
long int do_syscall(long int sys_no, ...); | |
#ifdef __cplusplus |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import socket | |
UDP_IP = "0.0.0.0" | |
UDP_PORT = 987 | |
sock = socket.socket(socket.AF_INET,socket.SOCK_DGRAM) | |
sock.bind((UDP_IP, UDP_PORT)) | |
while True: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <memory> | |
#include <functional> | |
#include <list> | |
namespace zero { | |
namespace promise { | |
template<typename Result, typename Reason> | |
class Promise; | |
template<typename T> |