Skip to content

Commit

Permalink
feat: set batching api as unstable
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-roland committed Nov 14, 2024
1 parent d639917 commit 6c24372
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/zenoh-pico/api/primitives.h
Original file line number Diff line number Diff line change
Expand Up @@ -2060,6 +2060,7 @@ z_result_t z_declare_background_subscriber(const z_loaned_session_t *zs, const z
const z_loaned_keyexpr_t *z_subscriber_keyexpr(const z_loaned_subscriber_t *subscriber);
#endif

#ifdef Z_FEATURE_UNSTABLE_API
#if Z_FEATURE_BATCHING == 1
/**
* Activate the batching mechanism.
Expand All @@ -2085,6 +2086,7 @@ z_result_t zp_batch_start(const z_loaned_session_t *zs);
*/
z_result_t zp_batch_stop(const z_loaned_session_t *zs);
#endif
#endif

/************* Multi Thread Tasks helpers **************/
/**
Expand Down
2 changes: 2 additions & 0 deletions src/api/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -1420,6 +1420,7 @@ const z_loaned_keyexpr_t *z_subscriber_keyexpr(const z_loaned_subscriber_t *sub)
}
#endif

#ifdef Z_FEATURE_UNSTABLE_API
#if Z_FEATURE_BATCHING == 1
z_result_t zp_batch_start(const z_loaned_session_t *zs) {
if (_Z_RC_IS_NULL(zs)) {
Expand All @@ -1439,6 +1440,7 @@ z_result_t zp_batch_stop(const z_loaned_session_t *zs) {
return _z_send_n_batch(session, Z_CONGESTION_CONTROL_DEFAULT);
}
#endif
#endif

/**************** Tasks ****************/
void zp_task_read_options_default(zp_task_read_options_t *options) {
Expand Down

0 comments on commit 6c24372

Please sign in to comment.