From f2cfa1707c713c7bb01d16f4c2c4d96803ea6793 Mon Sep 17 00:00:00 2001 From: Pixel Date: Fri, 6 Apr 2012 11:40:55 -0700 Subject: Making it simplier to register a task and wait for it. Also renamed createTask to registerTask, which makes way more sense. --- includes/Socket.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes/Socket.h') diff --git a/includes/Socket.h b/includes/Socket.h index f63edf0..b113e43 100644 --- a/includes/Socket.h +++ b/includes/Socket.h @@ -81,7 +81,7 @@ class Listener : public ListenerBase { public: Listener(int port, const char * local = "", void * opaque = NULL) : ListenerBase(port, local, opaque) { } protected: - virtual void factory(IO & io, void * opaque) { TaskMan::createTask(new Worker(io, opaque)); } + virtual void factory(IO & io, void * opaque) { TaskMan::registerTask(new Worker(io, opaque)); } virtual void setName() { m_name = String(ClassName(this).c_str()) + " - " + m_listener->getName(); } }; -- cgit v1.2.3