CrossSockets C++
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
617 B

// CrossThreadsHandler
// Copyright Jeroen Saey
// Created 29-01-2013
// CrossThreadsHandler.h
#pragma once
#include "CrossThreads.h"
#include <string>
#include <map>
class CrossThreadsHandler
{
public:
CrossThreadsHandler();
virtual ~CrossThreadsHandler();
unsigned long createAndStartThread (threadCallBack callback);
bool removeThread (unsigned long threadID);
bool joinThread (unsigned long threadID);
private:
std::map<unsigned long, CrossThreads*> _threadList;
};