Fusion360-Addons/usr/Include/Core/gblasyncblock.h
2021-10-31 19:39:29 +01:00

25 lines
611 B
C++

#pragma once
#include "stdafx.h"
class ExeInThread
{
public:
static CKObjectDeclaration * FillBehaviour( void );
static int CallBack( const CKBehaviorContext& behaviorContext );
static int BehaviourFunction( const CKBehaviorContext& behaviorContext );
static CKERROR CreatePrototype( CKBehaviorPrototype** behaviorPrototypePtr );
enum ThreadStatus {
Idle = 0, Requested = 2, Active = 3};
friend unsigned int BlockingThreadFunction(void *arg);
typedef struct ThreadInfo
{
CKBehavior* targetBeh;
int targetInputToActivate;
} AsyncThreadInfo;
};