devel/p5-Thread-Queue-Duplex 0.92_1 FreeBSD
Thread-safe request/response queue with identifiable elements
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- AFL21
- Categories
- devel, perl5
- Package size
- 23.6 KiB, 72.2 KiB installed
Description
A mapped queue, similar to Thread::Queue, except that as elements are queued, they are assigned unique identifiers, which are used to identify responses returned from the dequeuing thread. This class provides a simple RPC-like mechanism between multiple client and server threads, so that a single server thread can safely multiplex requests from multiple client threads. Note that simplex versions of the enqueue methods are provided which do not assign unique identifiers, and are used for requests to which no response is required/expected.
In addition, elements are inspected as they are enqueued/dequeued to determine if they are Thread::Queue::Queueable (aka TQQ) objects, and, if so, the onEnqueue() or onDequeue() methods are called to permit any additional class-specific marshalling/unmarshalling to be performed. Thread::Queue::Duplex (aka TQD) is itself a Thread::Queue::Queueable object, thus permitting TQD objects to be passed between threads.
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/p5-Thread-Queue-Duplex | 0.92_1 |
| DragonFly | devel/p5-Thread-Queue-Duplex | 0.92_1 |
Install
Binary package:
pkg install p5-Thread-Queue-Duplex
From the ports tree:
cd /usr/ports/devel/p5-Thread-Queue-Duplex/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= p5-Thread-Queue-Duplex>0:devel/p5-Thread-Queue-Duplex
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 0.92_1 | 0.92_1 | 0.92_1 | 0.92_1 | 0.92_1 |
| FreeBSD:14:quarterly | 0.92_1 | 0.92_1 | n/a | 0.92_1 | 0.92_1 |
| FreeBSD:15:latest | 0.92_1 | 0.92_1 | n/a | 0.92_1 | 0.92_1 |
| FreeBSD:15:quarterly | 0.92_1 | 0.92_1 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.92_1 | 0.92_1 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
The Makefile names none itself; they come from USES and USE_*.
The full lists below include those, and their dependencies in turn.
Build dependencies 1
Run dependencies 1
Required by 1
Configuration
No options to configure.
- USES
- perl5
- Service scripts
- none
Files
pkg-plist 7
- %%SITE_PERL%%/Thread/Queue/TQDContainer.pm
- %%SITE_PERL%%/Thread/Queue/Queueable.pod
- %%SITE_PERL%%/Thread/Queue/Queueable.pm
- %%SITE_PERL%%/Thread/Queue/Duplex.pod
- %%SITE_PERL%%/Thread/Queue/Duplex.pm
- %%PERL5_MAN3%%/Thread::Queue::Duplex.3.gz
- %%PERL5_MAN3%%/Thread::Queue::Queueable.3.gz
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| Thread-Queue-Duplex-0.92.tar.gz | 35370 | c04c0b6c400622f4d63dbcf932f6edb9f3e09d2caef41f46379fa32510197f4b |
Master sites 1
- CPAN
Commit history 0
No commits in the history this site was built from.