Thread related convenience classes and functions.
Class AdjustableSemaphore
A semaphore whose value may be tuned after instantiation.
Function bg(func, daemon=None, name=None, no_start=False)
Dispatch the callable func in its own Thread; return the Thread.
Parameters:
daemon: optional argument specifying the .daemon attribute.name: optional argument specifying the Thread name.no_start: optional argument, defaultFalse. If true, do not start the Thread.
Class LockableMixin
Trite mixin to control access to an object via its ._lock attribute. Exposes the ._lock as the property .lock. Presents a context manager interface for obtaining an object's lock.
Function locked(func)
A decorator for monitor functions that must run within a lock. Relies upon a ._lock attribute for locking.
Function locked_property(func, lock_name='_lock', prop_name=None, unset_object=None)
A thread safe property whose value is cached. The lock is taken if the value needs to computed.
Function via(cmanager, func, *a, **kw)
Return a callable that calls the supplied func inside a
with statement using the context manager cmanager.
This intended use case is aimed at deferred function calls.
Class WorkerThreadPool
MRO: cs.resources.MultiOpenMixin, cs.obj.O
A pool of worker threads to run functions.
Class WTPoolEntry
MRO: builtins.tuple
WTPoolEntry(thread, queue)
Metadata
Release files for cs-threads 20190422
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cs.threads-20190422.tar.gz | 5.5 kB | Without provenance | Details for cs.threads-20190422.tar.gz |
Release files / cs.threads-20190422.tar.gz
| Download URL | cs.threads-20190422.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
42ad8439751012b6c080bb8354118a263a4ffc68f377685eb4cc5511b22abdfe
|
|
BLAKE2b-256 checksum How to use checksums |
8537bf26c82547804db39ac967f1babf1c7649a6b5e031e362fe971f4d04cabf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
|
Security for cs-threads 20190422
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.