mirror of
https://github.com/bloeys/physx-go.git
synced 2025-12-29 07:58:20 +00:00
almost all objects contain only one pointer inside, making them very small, so no point paying (de)allocation costs. This has also been done to physx-c
22 lines
591 B
C
Executable File
22 lines
591 B
C
Executable File
#ifndef CPxDefaultCpuDispatcher_H
|
|
#define CPxDefaultCpuDispatcher_H
|
|
|
|
#include "CPxCpuDispatcher.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
struct CPxDefaultCpuDispatcher {
|
|
void* obj;
|
|
};
|
|
|
|
CPxAPI CSTRUCT CPxDefaultCpuDispatcher CPxDefaultCpuDispatcherCreate(CPxU32 numThreads, CPxU32* affinityMasks);
|
|
CPxAPI CSTRUCT CPxCpuDispatcher CPxDefaultCpuDispatcher_toCPxCpuDispatcher(CSTRUCT CPxDefaultCpuDispatcher cdcd);
|
|
CPxAPI void CPxDefaultCpuDispatcher_release(CSTRUCT CPxDefaultCpuDispatcher cdcd);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // !CPxDefaultCpuDispatcher_H
|