Logo white

Peter M. Groen / FlashMQ

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • FlashMQ
  • threaddata.h
  • bare start
    19f21bf2
    Wiebe Cazemier authored
    2020-12-03 22:15:43 +0100  
    Browse Code ยป
threaddata.h 336 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#ifndef THREADDATA_H
#define THREADDATA_H

#include <thread>
#include "utils.h"
#include <sys/epoll.h>
#include <sys/eventfd.h>

class ThreadData
{
public:
    std::thread thread;
    int threadnr = 0;
    int epollfd = 0;
    int event_fd = 0;

    ThreadData(int threadnr);

    void giveFdToEpoll(int fd);
};

#endif // THREADDATA_H