This package provides combinators for sequencing IO actions onto a thread

pool. The thread pool is guaranteed to contain no more unblocked threads
than a user-specified upper limit, thus minimizing contention.

Furthermore, the parallel combinators can be used reentrantly - your
parallel actions can spawn more parallel actions - without violating this
property of the thread pool.

The package is inspired by the thread
http://thread.gmane.org/gmane.comp.lang.haskell.cafe/56499/focus=56521.
Thanks to Neil Mitchell and Bulat Ziganshin for some of the code this
package is based on.
This commit is contained in:
Ryosuke Moro 2013-08-16 03:19:25 +00:00 committed by Thomas Klausner
parent c946d2d741
commit 79c8ceb202
5 changed files with 57 additions and 0 deletions

12
hs-parallel-io/DESCR Normal file
View file

@ -0,0 +1,12 @@
This package provides combinators for sequencing IO actions onto a thread
pool. The thread pool is guaranteed to contain no more unblocked threads
than a user-specified upper limit, thus minimizing contention.
Furthermore, the parallel combinators can be used reentrantly - your
parallel actions can spawn more parallel actions - without violating this
property of the thread pool.
The package is inspired by the thread
http://thread.gmane.org/gmane.comp.lang.haskell.cafe/56499/focus=56521.
Thanks to Neil Mitchell and Bulat Ziganshin for some of the code this
package is based on.

13
hs-parallel-io/Makefile Normal file
View file

@ -0,0 +1,13 @@
# $NetBSD: Makefile,v 1.1 2013/08/16 03:19:26 szptvlfn Exp $
DISTNAME= parallel-io-0.3.3
CATEGORIES= devel
MAINTAINER= szptvlfn@a-net.email.ne.jp
COMMENT= Combinators for executing IO actions in parallel on a thread pool
LICENSE= modified-bsd
.include "../../wip/mk/haskell.mk"
.include "../../wip/hs-random/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

14
hs-parallel-io/PLIST Normal file
View file

@ -0,0 +1,14 @@
@comment $NetBSD: PLIST,v 1.1 2013/08/16 03:19:26 szptvlfn Exp $
lib/parallel-io-${PKGVERSION}/${HASKELL_VERSION}/Control/Concurrent/ParallelIO.hi
lib/parallel-io-${PKGVERSION}/${HASKELL_VERSION}/Control/Concurrent/ParallelIO.p_hi
lib/parallel-io-${PKGVERSION}/${HASKELL_VERSION}/Control/Concurrent/ParallelIO/Compat.hi
lib/parallel-io-${PKGVERSION}/${HASKELL_VERSION}/Control/Concurrent/ParallelIO/Compat.p_hi
lib/parallel-io-${PKGVERSION}/${HASKELL_VERSION}/Control/Concurrent/ParallelIO/Global.hi
lib/parallel-io-${PKGVERSION}/${HASKELL_VERSION}/Control/Concurrent/ParallelIO/Global.p_hi
lib/parallel-io-${PKGVERSION}/${HASKELL_VERSION}/Control/Concurrent/ParallelIO/Local.hi
lib/parallel-io-${PKGVERSION}/${HASKELL_VERSION}/Control/Concurrent/ParallelIO/Local.p_hi
lib/parallel-io-${PKGVERSION}/${HASKELL_VERSION}/HSparallel-io-${PKGVERSION}.o
lib/parallel-io-${PKGVERSION}/${HASKELL_VERSION}/libHSparallel-io-${PKGVERSION}.a
lib/parallel-io-${PKGVERSION}/${HASKELL_VERSION}/libHSparallel-io-${PKGVERSION}_p.a
lib/parallel-io-${PKGVERSION}/${HASKELL_VERSION}/package-description
share/doc/parallel-io-${PKGVERSION}/LICENSE

View file

@ -0,0 +1,13 @@
# $NetBSD: buildlink3.mk,v 1.1 2013/08/16 03:19:26 szptvlfn Exp $
BUILDLINK_TREE+= hs-parallel-io
.if !defined(HS_PARALLEL_IO_BUILDLINK3_MK)
HS_PARALLEL_IO_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.hs-parallel-io+= hs-parallel-io>=0.3.3
BUILDLINK_PKGSRCDIR.hs-parallel-io?= ../../wip/hs-parallel-io
.endif # HS_PARALLEL_IO_BUILDLINK3_MK
BUILDLINK_TREE+= -hs-parallel-io

5
hs-parallel-io/distinfo Normal file
View file

@ -0,0 +1,5 @@
$NetBSD: distinfo,v 1.1 2013/08/16 03:19:26 szptvlfn Exp $
SHA1 (parallel-io-0.3.3.tar.gz) = a453c5090dc8b2ae2c106a1d81d379631b3c6b3e
RMD160 (parallel-io-0.3.3.tar.gz) = f2891903d059eb6ef12957143e86a36840f0fddd
Size (parallel-io-0.3.3.tar.gz) = 9435 bytes