Skip to content

[feature][services] add thread-safe STSAFE guard for session-scoped a…#95

Draft
Grom- wants to merge 1 commit into
mainfrom
feature/add_thread_safe_guard
Draft

[feature][services] add thread-safe STSAFE guard for session-scoped a…#95
Grom- wants to merge 1 commit into
mainfrom
feature/add_thread_safe_guard

Conversation

@Grom-

@Grom- Grom- commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

…nd per-transfer access

IMPORTANT INFORMATION

Contributor License Agreement (CLA)

  • The Pull Request feature will be considered by STMicroelectronics after the signature of a Contributor License Agreement (CLA) by the submitter.
  • If you did not sign such agreement, please follow the steps mentioned in the CONTRIBUTING.md file.

@Grom- Grom- marked this pull request as draft June 18, 2026 14:15
@parmi93

parmi93 commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

In our platform I added a same thread-safe guard in the I2C PAL functions, where a FreeRTOS mutex is locked in stse_platform_i2c_send_start()/stse_platform_i2c_receive_start() and unlocked in stse_platform_i2c_send_stop()/stse_platform_i2c_receive_stop(). The mutex can be unlocked in stse_platform_i2c_send_continue()/stse_platform_i2c_receive_continue() as well in case of an error (e.g. STSE_PLATFORM_BUFFER_ERR).

So I think this guard mechanism should be extended for non-Linux platform as well, maybe through some new PAL guard functions.

@Grom-

Grom- commented Jul 3, 2026

Copy link
Copy Markdown
Contributor Author

@parmi93 , yes , good point , I will extend it to non-Linux platform

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants