跳至主要內容

Class: sync<CT>

muzzik小于 1 分钟

index / obj_pool / sync

Class: sync<CT>

obj_pool.sync

同步对象池

Type parameters

Name
CT

Table of contents

Constructors

Accessors

Methods

Constructors

constructor

new sync<CT>(init_?)

Type parameters

Name
CT

Parameters

NameType
init_?config<CT>

Defined in

assets/@framework/mk_obj_pool.ts:205open in new window

Accessors

valid_b

get valid_b(): boolean

有效状态

Returns

boolean

Defined in

assets/@framework/mk_obj_pool.ts:214open in new window

Methods

put

put(obj_): void

导入对象

Parameters

NameType
obj_CT

Returns

void

Defined in

assets/@framework/mk_obj_pool.ts:227open in new window


get

get(): CT

获取对象

Returns

CT

Defined in

assets/@framework/mk_obj_pool.ts:246open in new window


clear

clear(): void

清空数据

Returns

void

Defined in

assets/@framework/mk_obj_pool.ts:262open in new window


destroy

destroy(): void

销毁对象池

Returns

void

Remarks

销毁后将无法 get/put

Defined in

assets/@framework/mk_obj_pool.ts:275open in new window

📣 觉得很赞?分享给你的朋友吧!