def __init__(self):
# # RETURNS STDOUT: self._state = "TEXT" + str(NUMBER)
# # RETURNS BAD VALUE: self._timestamp.value = 1234567890.99
# self._state = multiprocessing.RawValue(ctypes.c_char_p)
# self._ost_name = multiprocessing.RawValue(ctypes.c_char_p)
# self._timestamp = multiprocessing.RawValue(ctypes.c_float)
self._state = multiprocessing.RawValue(ctypes.c_int, WorkerState.NOT_READY)
self._ost_name = multiprocessing.RawArray('c', 64)
self._timestamp = multiprocessing.RawValue(ctypes.c_uint, 0)
worker.py 文件源码
python
阅读 36
收藏 0
点赞 0
评论 0
评论列表
文章目录