mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-18 14:12:21 +08:00
支持客户端自定义设置EventPoller对象,提高线程安全性
This commit is contained in:
@@ -44,7 +44,8 @@ public:
|
||||
typedef std::shared_ptr<PusherBase> Ptr;
|
||||
typedef std::function<void(const SockException &ex)> Event;
|
||||
|
||||
static Ptr createPusher(const MediaSource::Ptr &src,
|
||||
static Ptr createPusher(const EventPoller::Ptr &poller,
|
||||
const MediaSource::Ptr &src,
|
||||
const string &strUrl);
|
||||
|
||||
PusherBase();
|
||||
@@ -78,7 +79,10 @@ template<typename Parent,typename Parser>
|
||||
class PusherImp : public Parent {
|
||||
public:
|
||||
typedef std::shared_ptr<PusherImp> Ptr;
|
||||
PusherImp(){}
|
||||
|
||||
template<typename ...ArgsType>
|
||||
PusherImp(ArgsType &&...args):Parent(std::forward<ArgsType>(args)...){}
|
||||
|
||||
virtual ~PusherImp(){}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user