Project

General

Profile

Feature #141

Change the thread / plugins management

Added by David Demelier over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
High
Category:
irccd
Target version:
Start date:
06/14/2013
Due date:
06/15/2013
% Done:

100%

Estimated time:
8.00 h
Spent time:
MFD after:
MFD revision:
Branch:
Bookmark:
Platform:

Description

For the moment, the Server class calls directly plugins, this is bad.

Let's do a very independant thing, servers will push any event on a queue in Irccd class, then in the Irccd class. Then in the Irccd main loop, we iterate over these events and dispatch them to the plugins.

Servers will not access to any plugin at all. Also, the listener may be threaded too, the best way is to use a condition variable to wait until listener / server has pushed something.

History

#1

Updated by David Demelier over 6 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100
#2

Updated by David Demelier over 6 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF