krakjoe/pthreads-polyfill

A polyfill for pthreads

Maintainers

👁 krakjoe

Package info

github.com/krakjoe/pthreads-polyfill

Homepage

pkg:composer/krakjoe/pthreads-polyfill

Statistics

Installs: 135 505

Dependents: 5

Suggesters: 2

Stars: 78

Open Issues: 5

v1.1.0 2015-11-16 08:24 UTC

Requires

None

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

PHP e0b6b34aca142dda943bf8ade046285fd2000c35

  • Joe Watkins <krakjoe.woop@php.net>

pthreadspolyfill

This package is auto-updated.

Last update: 2026-06-09 17:29:22 UTC


README

👁 Build Status

pthreads-polyfill aims to satisfy the API requirements of pthreads, such that code written to depend on pthreads will work when pthreads is not, or can not be loaded.

pthreads-polyfill does not implement the same execution model, for obvious reasons, and has no external dependencies.

pthreads-polyfill will fill for v2 or v3, however behaviour is consistent with v3, which is the version new projects should target.

Testing

pthreads-polyfill is distributed with some unit tests, these tests should pass with and without pthreads loaded.

Testing pthreads-polyfill

phpunit tests

If pthreads is loaded by your configuration the polyfill will not be used.

Testing code coverage for pthreads-polyfill

phpdbg -nqrr vendor/bin/phpunit tests --coverage-text