The cl-tbnl-gserver-tmgr Reference Manual

This is the cl-tbnl-gserver-tmgr Reference Manual, version 0.1.1, generated automatically by Declt version 4.0 beta 2 "William Riker" on Fri May 15 12:01:52 2026 GMT+0.

Table of Contents


1 Introduction


2 Systems

The main system appears first, followed by any subsystem dependency.


2.1 cl-tbnl-gserver-tmgr

Hunchentoot pooled multi-threaded taskmanager based on cl-gserver.

Author

Manfred Bergmann

License

MIT

Version

0.1.1

Dependencies
  • hunchentoot (system).
  • sento (system).
  • log4cl (system).
Source

cl-tbnl-gserver-tmgr.asd.

Child Component

src (module).


3 Modules

Modules are listed depth-first from the system components tree.


3.1 cl-tbnl-gserver-tmgr/src

Source

cl-tbnl-gserver-tmgr.asd.

Parent Component

cl-tbnl-gserver-tmgr (system).

Child Components

4 Files

Files are sorted by type and then listed depth-first from the systems components trees.


4.1 Lisp


4.1.1 cl-tbnl-gserver-tmgr/cl-tbnl-gserver-tmgr.asd

Source

cl-tbnl-gserver-tmgr.asd.

Parent Component

cl-tbnl-gserver-tmgr (system).

ASDF Systems

cl-tbnl-gserver-tmgr.


4.1.2 cl-tbnl-gserver-tmgr/src/tmgr-wkr.lisp

Source

cl-tbnl-gserver-tmgr.asd.

Parent Component

src (module).

Packages

cl-tbnl-gserver-tmgr.tmgr-wkr.

Public Interface
Internals

4.1.3 cl-tbnl-gserver-tmgr/src/tmgr.lisp

Dependency

tmgr-wkr.lisp (file).

Source

cl-tbnl-gserver-tmgr.asd.

Parent Component

src (module).

Packages

cl-tbnl-gserver-tmgr.tmgr.

Public Interface
Internals

*gserver-tmgr-poolsize* (special variable).


5 Packages

Packages are listed by definition order.


5.1 cl-tbnl-gserver-tmgr.tmgr

Source

tmgr.lisp.

Nickname

gstmgr

Use List
Public Interface
Internals

*gserver-tmgr-poolsize* (special variable).


5.2 cl-tbnl-gserver-tmgr.tmgr-wkr

Source

tmgr-wkr.lisp.

Nickname

gstmgr-wkr

Use List
  • common-lisp.
  • sento.actor.
Used By List

cl-tbnl-gserver-tmgr.tmgr.

Public Interface
Internals

6 Definitions

Definitions are sorted by export status, category, package, and then by lexicographic order.


6.1 Public Interface


6.1.1 Ordinary functions

Function: get-processed-requests (worker)
Package

cl-tbnl-gserver-tmgr.tmgr-wkr.

Source

tmgr-wkr.lisp.

Function: make-tmgr-worker (asystem)
Package

cl-tbnl-gserver-tmgr.tmgr-wkr.

Source

tmgr-wkr.lisp.


6.1.2 Generic functions

Generic Reader: router (object)
Package

cl-tbnl-gserver-tmgr.tmgr.

Methods
Reader Method: router ((gserver-tmgr gserver-tmgr))

the actor router. it contains as many workers as is specified in ‘:max-thread-count’.

Source

tmgr.lisp.

Target Slot

router.


6.1.3 Standalone methods

Method: execute-acceptor ((self gserver-tmgr))
Package

hunchentoot.

Source

tmgr.lisp.

Method: handle-incoming-connection ((self gserver-tmgr) socket)
Package

hunchentoot.

Source

tmgr.lisp.

Method: initialize-instance :after ((self gserver-tmgr) &key)
Source

tmgr.lisp.

Method: shutdown ((self gserver-tmgr))
Package

hunchentoot.

Source

tmgr.lisp.

Writer Method: (setf taskmaster-max-thread-count) ((gserver-tmgr gserver-tmgr))

The number of gservers that should be spawned to handle requests. A number of <cores> * 2 could be a good value.

Package

hunchentoot.

Source

tmgr.lisp.

Target Slot

max-thread-count.

Reader Method: taskmaster-max-thread-count ((gserver-tmgr gserver-tmgr))

The number of gservers that should be spawned to handle requests. A number of <cores> * 2 could be a good value.

Package

hunchentoot.

Source

tmgr.lisp.

Target Slot

max-thread-count.

Reader Method: taskmaster-thread-count :around ((self gserver-tmgr))
Package

hunchentoot.

Source

tmgr.lisp.

Target Slot

thread-count.

Writer Method: (setf taskmaster-thread-count) ((gserver-tmgr gserver-tmgr))

The currently running number of gservers.

Package

hunchentoot.

Source

tmgr.lisp.

Target Slot

thread-count.

Method: taskmaster-thread-count ((gserver-tmgr gserver-tmgr))

The currently running number of gservers.

Package

hunchentoot.

Source

tmgr.lisp.


6.1.4 Classes

Class: gserver-tmgr
Package

cl-tbnl-gserver-tmgr.tmgr.

Source

tmgr.lisp.

Direct superclasses

multi-threaded-taskmaster.

Direct methods
Direct slots
Slot: asystem
Initform

(sento.actor-system:make-actor-system (quote (:dispatchers (:shared (:workers 0)))))

Slot: router

the actor router. it contains as many workers as is specified in ‘:max-thread-count’.

Readers

router.

Writers

This slot is read-only.

Slot: max-thread-count

The number of gservers that should be spawned to handle requests. A number of <cores> * 2 could be a good value.

Type

integer

Initform

cl-tbnl-gserver-tmgr.tmgr::*gserver-tmgr-poolsize*

Initargs

:max-thread-count

Readers

taskmaster-max-thread-count.

Writers

(setf taskmaster-max-thread-count).

Slot: thread-count

The currently running number of gservers.

Type

integer

Initform

0

Readers

taskmaster-thread-count.

Writers

(setf taskmaster-thread-count).

Slot: test-acceptor

Internal, only for testing to inject a fake acceptor.

Initargs

:test-acceptor

Class: tmgr-worker
Package

cl-tbnl-gserver-tmgr.tmgr-wkr.

Source

tmgr-wkr.lisp.

Direct superclasses

actor.


6.2 Internals


6.2.1 Special variables

Special Variable: *gserver-tmgr-poolsize*
Package

cl-tbnl-gserver-tmgr.tmgr.

Source

tmgr.lisp.


6.2.2 Ordinary functions

Function: copy-worker-state (instance)
Package

cl-tbnl-gserver-tmgr.tmgr-wkr.

Source

tmgr-wkr.lisp.

Function: make-worker-state (&key processed-requests)
Package

cl-tbnl-gserver-tmgr.tmgr-wkr.

Source

tmgr-wkr.lisp.

Function: process-request (acceptor socket)
Package

cl-tbnl-gserver-tmgr.tmgr-wkr.

Source

tmgr-wkr.lisp.

Function: receive (message)
Package

cl-tbnl-gserver-tmgr.tmgr-wkr.

Source

tmgr-wkr.lisp.

Function: worker-state-p (object)
Package

cl-tbnl-gserver-tmgr.tmgr-wkr.

Source

tmgr-wkr.lisp.

Reader: worker-state-processed-requests (instance)
Writer: (setf worker-state-processed-requests) (instance)
Package

cl-tbnl-gserver-tmgr.tmgr-wkr.

Source

tmgr-wkr.lisp.

Target Slot

processed-requests.


6.2.3 Structures

Structure: worker-state
Package

cl-tbnl-gserver-tmgr.tmgr-wkr.

Source

tmgr-wkr.lisp.

Direct superclasses

structure-object.

Direct slots
Slot: processed-requests
Type

integer

Initform

0

Readers

worker-state-processed-requests.

Writers

(setf worker-state-processed-requests).


Appendix A Indexes


A.1 Concepts


A.2 Functions

Jump to:   (  
C   E   F   G   H   I   M   P   R   S   T   W  
Index Entry  Section

(
(setf taskmaster-max-thread-count): Public standalone methods
(setf taskmaster-thread-count): Public standalone methods
(setf worker-state-processed-requests): Private ordinary functions

C
copy-worker-state: Private ordinary functions

E
execute-acceptor: Public standalone methods

F
Function, (setf worker-state-processed-requests): Private ordinary functions
Function, copy-worker-state: Private ordinary functions
Function, get-processed-requests: Public ordinary functions
Function, make-tmgr-worker: Public ordinary functions
Function, make-worker-state: Private ordinary functions
Function, process-request: Private ordinary functions
Function, receive: Private ordinary functions
Function, worker-state-p: Private ordinary functions
Function, worker-state-processed-requests: Private ordinary functions

G
Generic Function, router: Public generic functions
get-processed-requests: Public ordinary functions

H
handle-incoming-connection: Public standalone methods

I
initialize-instance: Public standalone methods

M
make-tmgr-worker: Public ordinary functions
make-worker-state: Private ordinary functions
Method, (setf taskmaster-max-thread-count): Public standalone methods
Method, (setf taskmaster-thread-count): Public standalone methods
Method, execute-acceptor: Public standalone methods
Method, handle-incoming-connection: Public standalone methods
Method, initialize-instance: Public standalone methods
Method, router: Public generic functions
Method, shutdown: Public standalone methods
Method, taskmaster-max-thread-count: Public standalone methods
Method, taskmaster-thread-count: Public standalone methods
Method, taskmaster-thread-count: Public standalone methods

P
process-request: Private ordinary functions

R
receive: Private ordinary functions
router: Public generic functions
router: Public generic functions

S
shutdown: Public standalone methods

T
taskmaster-max-thread-count: Public standalone methods
taskmaster-thread-count: Public standalone methods
taskmaster-thread-count: Public standalone methods

W
worker-state-p: Private ordinary functions
worker-state-processed-requests: Private ordinary functions