FIFO share for multiprocess
Project description
FFIFO share for multiprocess
Example
#!/usr/bin/env python
#!/usr/bin/env python
import PArray as pa
from spfifo import *
def test():
pf1 = SPFIFO()
pf1.init(key = "test", number_element = 5, dtype='|S5', element_perblock=2, reNewFlag = True, timeout = 0, raseOtherDelete = False)
pf2 = SPFIFO()
pf2.init(key = "test")
pf1.push(["aa123456"]);
pf1.push(["bb",""]);
pf1.push(["cc",""]);
pf1.push(["dd",""]);
pf1.push(["ee",""]);
print("count ", pf2.count(), pf2.pop()[0])
print("count ", pf2.count(), pf2.pop())
print("count ", pf2.count(), pf2.pop())
print("count ", pf2.count(), pf2.pop())
print("count ", pf2.count(), pf2.pop())
test()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
SPFIFO-1.2.0-py3.5.egg
(4.3 kB
view details)
SPFIFO-1.2.0-py2.7.egg
(4.3 kB
view details)
File details
Details for the file SPFIFO-1.2.0-py3.5.egg.
File metadata
- Download URL: SPFIFO-1.2.0-py3.5.egg
- Upload date:
- Size: 4.3 kB
- Tags: Egg
- Uploaded using 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.5.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
370e57595c1053e57d232c551b6627f208569c5a4f0d09ba6f7c643499dd7e79
|
|
| MD5 |
923747a6c7107a00d507f914dff2421d
|
|
| BLAKE2b-256 |
e47d5fb45efac325fc72d1da43036bb85aacd143ec68ee5b89061d6ca0def70e
|
File details
Details for the file SPFIFO-1.2.0-py2.7.egg.
File metadata
- Download URL: SPFIFO-1.2.0-py2.7.egg
- Upload date:
- Size: 4.3 kB
- Tags: Egg
- Uploaded using 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.5.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ebda91c92e32a36d018054924540a36e37fd2244b75c2ae5e89774b9b8442402
|
|
| MD5 |
ec64b50573d9ea47a8c18665a63b8155
|
|
| BLAKE2b-256 |
a6ae7926e097f34d452b7e03707cd18077447abee9e5a3b393c5d58483df456e
|