mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-07-06 03:28:09 +08:00
mv to Common folder
This commit is contained in:
25
src/Common/MediaSender.h
Normal file
25
src/Common/MediaSender.h
Normal file
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* MediaSender.h
|
||||
*
|
||||
* Created on: 2016年9月1日
|
||||
* Author: xzl
|
||||
*/
|
||||
|
||||
#ifndef SRC_MEDIASENDER_H_
|
||||
#define SRC_MEDIASENDER_H_
|
||||
|
||||
#include "Thread/ThreadPool.h"
|
||||
using namespace ZL::Thread;
|
||||
|
||||
class MediaSender {
|
||||
public:
|
||||
static ThreadPool & sendThread() {
|
||||
static ThreadPool pool(1);
|
||||
return pool;
|
||||
}
|
||||
private:
|
||||
MediaSender();
|
||||
virtual ~MediaSender();
|
||||
};
|
||||
|
||||
#endif /* SRC_MEDIASENDER_H_ */
|
||||
Reference in New Issue
Block a user