Open jsdpag opened 1 year ago
Problems 1 and 2 are resolved in v0.0.1. But there is an problem 3, now. There is some mysterious UTF encoding/decoding error when running demo.py. This crashes the parent process. And yet, the child processes continue to work as expected.
There are at least two problems. 1) header.py uses Unix specific library resource. 2) memoryview cannot be pickled across the spawn to a child process.
Work arounds: 1) Check OS and assign hard-coded default value if Windows. 2) Check OS. Establish memoryview objects in call to .open( ) method if Windows, rather than during .__init__( ). If nix then do* establish memoryviews during init, for sharing amongst all child processes.