Add maxuse_threadstack to mjData

PiperOrigin-RevId: 567334177
Change-Id: Ifd772350042e548a63ab269fd68fb5e5fef55831
This commit is contained in:
Matthew Bennice
2023-09-21 09:40:14 -07:00
committed by Copybara-Service
parent be75dda8d1
commit 4f34cacf35
13 changed files with 223 additions and 65 deletions
+46 -38
View File
@@ -3324,6 +3324,42 @@ STRUCTS: Mapping[str, StructDecl] = dict([
),
),
)),
('mjThreadPool',
StructDecl(
name='mjThreadPool',
declname='struct mjThreadPool_',
fields=(
StructFieldDecl(
name='nworker',
type=ValueType(name='int'),
doc='number of workers in the pool',
),
),
)),
('mjTask',
StructDecl(
name='mjTask',
declname='struct mjTask_',
fields=(
StructFieldDecl(
name='func',
type=ValueType(name='mjfTask'),
doc='pointer to the function that implements the task',
),
StructFieldDecl(
name='args',
type=PointerType(
inner_type=ValueType(name='void'),
),
doc='arguments to func',
),
StructFieldDecl(
name='status',
type=ValueType(name='int', is_volatile=True),
doc='status of the task',
),
),
)),
('mjContact',
StructDecl(
name='mjContact',
@@ -3541,12 +3577,20 @@ STRUCTS: Mapping[str, StructDecl] = dict([
StructFieldDecl(
name='maxuse_stack',
type=ValueType(name='size_t'),
doc='maximum stack allocation',
doc='maximum stack allocation in bytes',
),
StructFieldDecl(
name='maxuse_threadstack',
type=ArrayType(
inner_type=ValueType(name='size_t'),
extents=(128,),
),
doc='maximum stack allocation per thread in bytes',
),
StructFieldDecl(
name='maxuse_arena',
type=ValueType(name='size_t'),
doc='maximum arena allocation',
doc='maximum arena allocation in bytes',
),
StructFieldDecl(
name='maxuse_con',
@@ -7020,42 +7064,6 @@ STRUCTS: Mapping[str, StructDecl] = dict([
),
),
)),
('mjThreadPool',
StructDecl(
name='mjThreadPool',
declname='struct mjThreadPool_',
fields=(
StructFieldDecl(
name='nworker',
type=ValueType(name='int'),
doc='number of workers in the pool',
),
),
)),
('mjTask',
StructDecl(
name='mjTask',
declname='struct mjTask_',
fields=(
StructFieldDecl(
name='func',
type=ValueType(name='mjfTask'),
doc='pointer to the function that implements the task',
),
StructFieldDecl(
name='args',
type=PointerType(
inner_type=ValueType(name='void'),
),
doc='arguments to func',
),
StructFieldDecl(
name='status',
type=ValueType(name='int', is_volatile=True),
doc='status of the task',
),
),
)),
('mjuiState',
StructDecl(
name='mjuiState',