One Hat Cyber Team
Your IP :
216.73.216.36
Server IP :
162.240.179.46
Server :
Linux vps-14493116.nutrivittasaude.com.br 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64
Server Software :
Apache
PHP Version :
8.2.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
include
/
Imath
/
View File Name :
PyImathTask.h
// // SPDX-License-Identifier: BSD-3-Clause // Copyright Contributors to the OpenEXR Project. // // clang-format off #ifndef _PyImathTask_h_ #define _PyImathTask_h_ #include <cstddef> #include "PyImathExport.h" namespace PyImath { struct Task { PYIMATH_EXPORT virtual ~Task() {} PYIMATH_EXPORT virtual void execute(size_t start,size_t end) = 0; PYIMATH_EXPORT virtual void execute(size_t start,size_t end, int tid) {execute(start,end);} }; struct WorkerPool { PYIMATH_EXPORT virtual ~WorkerPool() {} PYIMATH_EXPORT virtual size_t workers() const = 0; PYIMATH_EXPORT virtual void dispatch(Task &task,size_t length) = 0; PYIMATH_EXPORT virtual bool inWorkerThread() const = 0; PYIMATH_EXPORT static WorkerPool *currentPool(); PYIMATH_EXPORT static void setCurrentPool(WorkerPool *pool); }; PYIMATH_EXPORT void dispatchTask(Task &task,size_t length); PYIMATH_EXPORT size_t workers(); } #endif