class GradSoft::ThreadService

ThreadService: entity which process Runnable (Runnable may be events, network connections, etc) Typical usage pattern: 1.

Inheritance:


Public Methods

[more] ThreadService()
[more]virtual ~ThreadService()
[more]virtual void process(Runnable* runnable) = 0
[more]bool is_active() const
[more]virtual void activate()
[more]virtual void deactivate(bool shutdown)

Public Members

[more]struct NotActive
This exception is throwed, when we try to use not-activated ThreadService


Documentation

ThreadService: entity which process Runnable (Runnable may be events, network connections, etc) Typical usage pattern: 1. Generator generates Runnable 2. this Runnables are passed to ThreadServices, with help of call ThreadService::process 3. ThreadService process this runnable, asynchronicly or synchronisly.

ThreadService can be in active or inactive state. When it in active state, it can process requests. When in inactive - can't.

ostruct NotActive
This exception is throwed, when we try to use not-activated ThreadService

o ThreadService()

ovirtual ~ThreadService()

ovirtual void process(Runnable* runnable) = 0

obool is_active() const

ovirtual void activate()

ovirtual void deactivate(bool shutdown)


Direct child classes:
ThreadPool
ThreadPerClient
SingleThreadReactive
SingleThreadChecking
SingleThreadBlocking
Friends:
class DeactivateRunnable

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.