Skip to content

Commit 07227ec

Browse files
committed
distr files update
1 parent dd328ea commit 07227ec

1 file changed

Lines changed: 82 additions & 14 deletions

File tree

distr/flecs.h

Lines changed: 82 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4832,108 +4832,176 @@ FLECS_ALWAYS_INLINE ecs_table_t *flecs_table_traverse_add(
48324832

48334833
#ifdef FLECS_MUT_ALIAS_LOCKS
48344834

4835-
/** Begin read lock on sparse component record.
4835+
/** Begin read lock on sparse component record.
48364836
* a sparse id is a component marked either as sparse or non-fragmenting
4837-
*/
4837+
*
4838+
* @param cr The component record.
4839+
* @return true if the mut alias was violated, false otherwise.
4840+
*/
48384841
FLECS_API
48394842
FLECS_ALWAYS_INLINE bool flecs_sparse_id_record_lock_read_begin(
48404843
ecs_component_record_t *cr);
48414844

48424845
/** End read lock on sparse component record.
48434846
* a sparse id is a component marked either as sparse or non-fragmenting
4847+
*
4848+
* @param cr The component record.
4849+
* @return true if the mut alias was violated, false otherwise.
48444850
*/
48454851
FLECS_API
48464852
FLECS_ALWAYS_INLINE bool flecs_sparse_id_record_lock_read_end(
48474853
ecs_component_record_t *cr);
48484854

48494855
/** Begin write lock on sparse component record.
48504856
* a sparse id is a component marked either as sparse or non-fragmenting
4857+
*
4858+
* @param cr The component record.
4859+
* @return true if the mut alias was violated, false otherwise.
48514860
*/
48524861
FLECS_API
48534862
FLECS_ALWAYS_INLINE bool flecs_sparse_id_record_lock_write_begin(
48544863
ecs_component_record_t *cr);
48554864

48564865
/** End write lock on sparse component record.
48574866
* a sparse id is a component marked either as sparse or non-fragmenting
4867+
*
4868+
* @param cr The component record.
4869+
* @return true if the mut alias was violated, false otherwise.
48584870
*/
48594871
FLECS_API
48604872
FLECS_ALWAYS_INLINE bool flecs_sparse_id_record_lock_write_end(
48614873
ecs_component_record_t *cr);
48624874

4863-
/** Begin read lock on table column. */
4875+
/** Begin read lock on table column.
4876+
*
4877+
* @param table The table.
4878+
* @param column_index The column index in the table.
4879+
* @return true if the mut alias was violated, false otherwise.
4880+
*/
48644881
FLECS_API
48654882
FLECS_ALWAYS_INLINE bool flecs_table_column_lock_read_begin(
48664883
ecs_table_t *table,
48674884
const int16_t column_index);
48684885

4869-
/** End read lock on table column. */
4886+
/** End read lock on table column.
4887+
*
4888+
* @param table The table.
4889+
* @param column_index The column index in the table.
4890+
* @return true if the mut alias was violated, false otherwise.
4891+
*/
48704892
FLECS_API
48714893
FLECS_ALWAYS_INLINE bool flecs_table_column_lock_read_end(
48724894
ecs_table_t *table,
48734895
const int16_t column_index);
48744896

4875-
/** Begin write lock on table column. */
4897+
/** Begin write lock on table column.
4898+
*
4899+
* @param table The table.
4900+
* @param column_index The column index in the table.
4901+
* @return true if the mut alias was violated, false otherwise.
4902+
*/
48764903
FLECS_API
48774904
FLECS_ALWAYS_INLINE bool flecs_table_column_lock_write_begin(
48784905
ecs_table_t *table,
48794906
const int16_t column_index);
48804907

4881-
/** End write lock on table column. */
4908+
/** End write lock on table column.
4909+
*
4910+
* @param table The table.
4911+
* @param column_index The column index in the table.
4912+
* @return true if the mut alias was violated, false otherwise.
4913+
*/
48824914
FLECS_API
48834915
FLECS_ALWAYS_INLINE bool flecs_table_column_lock_write_end(
48844916
ecs_table_t *table,
48854917
const int16_t column_index);
48864918

4887-
/* Begin read lock on sparse component record in multithreaded context.
4919+
/** Begin read lock on sparse component record in multithreaded context.
48884920
* a sparse id is a component marked either as sparse or non-fragmenting
4921+
*
4922+
* @param cr The component record.
4923+
* @return true if the mut alias was violated, false otherwise.
48894924
*/
48904925
FLECS_API
48914926
FLECS_ALWAYS_INLINE bool flecs_sparse_id_record_lock_read_begin_multithreaded(
48924927
ecs_component_record_t *cr);
48934928

4894-
/* End read lock on sparse component record in multithreaded context.
4929+
/** End read lock on sparse component record in multithreaded context.
48954930
* a sparse id is a component marked either as sparse or non-fragmenting
4931+
*
4932+
* @param cr The component record.
4933+
* @return true if the mut alias was violated, false otherwise.
48964934
*/
48974935
FLECS_API
48984936
FLECS_ALWAYS_INLINE bool flecs_sparse_id_record_lock_read_end_multithreaded(
48994937
ecs_component_record_t *cr);
49004938

4901-
/* Begin write lock on sparse component record in multithreaded context.
4939+
/** Begin write lock on sparse component record in multithreaded context.
49024940
* a sparse id is a component marked either as sparse or non-fragmenting
4941+
*
4942+
* @param cr The component record.
4943+
* @return true if the mut alias was violated, false otherwise.
49034944
*/
49044945
FLECS_API
49054946
FLECS_ALWAYS_INLINE bool flecs_sparse_id_record_lock_write_begin_multithreaded(
49064947
ecs_component_record_t *cr);
49074948

4908-
/* End write lock on sparse component record in multithreaded context.
4949+
/** End write lock on sparse component record in multithreaded context.
49094950
* a sparse id is a component marked either as sparse or non-fragmenting
4951+
*
4952+
* @param cr The component record.
4953+
* @return true if the mut alias was violated, false otherwise.
49104954
*/
49114955
FLECS_API
49124956
FLECS_ALWAYS_INLINE bool flecs_sparse_id_record_lock_write_end_multithreaded(
49134957
ecs_component_record_t *cr);
49144958

4915-
/* Begin read lock on table column in multithreaded context. */
4959+
/** Begin read lock on table column in multithreaded context.
4960+
*
4961+
* @param table The table.
4962+
* @param column_index The column index in the table.
4963+
* @param stage_id The stage id of the calling thread.
4964+
* @return true if the mut alias was violated, false otherwise.
4965+
*/
49164966
FLECS_API
49174967
FLECS_ALWAYS_INLINE bool flecs_table_column_lock_read_begin_multithreaded(
49184968
ecs_table_t *table,
49194969
const int16_t column_index,
49204970
const int32_t stage_id);
49214971

4922-
/* End read lock on table column in multithreaded context. */
4972+
/** End read lock on table column in multithreaded context.
4973+
*
4974+
* @param table The table.
4975+
* @param column_index The column index in the table.
4976+
* @param stage_id The stage id of the calling thread.
4977+
* @return true if the mut alias was violated, false otherwise.
4978+
*/
49234979
FLECS_API
49244980
FLECS_ALWAYS_INLINE bool flecs_table_column_lock_read_end_multithreaded(
49254981
ecs_table_t *table,
49264982
const int16_t column_index,
49274983
const int32_t stage_id);
49284984

4929-
/* Begin write lock on table column in multithreaded context. */
4985+
/** Begin write lock on table column in multithreaded context.
4986+
*
4987+
* @param table The table.
4988+
* @param column_index The column index in the table.
4989+
* @param stage_id The stage id of the calling thread.
4990+
* @return true if the mut alias was violated, false otherwise.
4991+
*/
49304992
FLECS_API
49314993
FLECS_ALWAYS_INLINE bool flecs_table_column_lock_write_begin_multithreaded(
49324994
ecs_table_t *table,
49334995
const int16_t column_index,
49344996
const int32_t stage_id);
49354997

4936-
/* End write lock on table column in multithreaded context. */
4998+
/** End write lock on table column in multithreaded context.
4999+
*
5000+
* @param table The table.
5001+
* @param column_index The column index in the table.
5002+
* @param stage_id The stage id of the calling thread.
5003+
* @return true if the mut alias was violated, false otherwise.
5004+
*/
49375005
FLECS_API
49385006
FLECS_ALWAYS_INLINE bool flecs_table_column_lock_write_end_multithreaded(
49395007
ecs_table_t *table,

0 commit comments

Comments
 (0)