mirror of
https://github.com/eclipse-threadx/threadx.git
synced 2026-10-06 06:59:08 +08:00
Fixed the garbled comment in the POSIX condition variable sources (#694)
The comment above the internal semaphore lookup in the POSIX condition
variable implementation was garbled: it contained a capitalisation typo
("COndition") and an incomplete sentence ("into a semaphore a cast").
The four affected sources now share a single, correct wording.
This is a comment-only change; there is no functional impact.
Fixes #419
Assisted-by: Copilot (Opus 5) <noreply@github.com>
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
* SPDX-License-Identifier: MIT
|
||||
**************************************************************************/
|
||||
|
||||
// Some portions generated by Copilot (Opus 5).
|
||||
|
||||
/**************************************************************************/
|
||||
/**************************************************************************/
|
||||
@@ -91,7 +92,7 @@ UINT old_threshold,dummy;
|
||||
|
||||
|
||||
/* Get the condition variable's internal semaphore. */
|
||||
/* Simply convert the condition variable control block into a semaphore a cast */
|
||||
/* Simply convert the condition variable control block into a semaphore using casting. */
|
||||
semaphore_ptr = (&( cond->cond_semaphore ));
|
||||
sem_count = semaphore_ptr->tx_semaphore_suspended_count;
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
* SPDX-License-Identifier: MIT
|
||||
**************************************************************************/
|
||||
|
||||
// Some portions generated by Copilot (Opus 5).
|
||||
|
||||
/**************************************************************************/
|
||||
/**************************************************************************/
|
||||
@@ -80,7 +81,7 @@ UINT status;
|
||||
{
|
||||
cond->in_use = TX_FALSE;
|
||||
/* Get the condition variable's internal semaphore. */
|
||||
/* Simply convert the Condition variable control block into a semaphore a cast */
|
||||
/* Simply convert the condition variable control block into a semaphore using casting. */
|
||||
semaphore_ptr = (&( cond->cond_semaphore ));
|
||||
status = tx_semaphore_delete(semaphore_ptr);
|
||||
if (status != TX_SUCCESS)
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
* SPDX-License-Identifier: MIT
|
||||
**************************************************************************/
|
||||
|
||||
// Some portions generated by Copilot (Opus 5).
|
||||
|
||||
/**************************************************************************/
|
||||
/**************************************************************************/
|
||||
@@ -72,7 +73,7 @@ UINT status;
|
||||
|
||||
cond->in_use = TX_TRUE;
|
||||
/* Get the condition variable's internal semaphore. */
|
||||
/* Simply convert the COndition variable control block into a semaphore a cast */
|
||||
/* Simply convert the condition variable control block into a semaphore using casting. */
|
||||
semaphore_ptr = (&( cond->cond_semaphore ));
|
||||
/* Now create the internal semaphore for this cond variable */
|
||||
status = tx_semaphore_create(semaphore_ptr,"csem",0);
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
* SPDX-License-Identifier: MIT
|
||||
**************************************************************************/
|
||||
|
||||
// Some portions generated by Copilot (Opus 5).
|
||||
|
||||
/**************************************************************************/
|
||||
/**************************************************************************/
|
||||
@@ -84,7 +85,7 @@ TX_SEMAPHORE *semaphore_ptr;
|
||||
UINT status;
|
||||
|
||||
/* Get the condition variable's internal semaphore. */
|
||||
/* Simply convert the COndition variable control block into a semaphore a cast */
|
||||
/* Simply convert the condition variable control block into a semaphore using casting. */
|
||||
semaphore_ptr = (&( cond->cond_semaphore ));
|
||||
if ( semaphore_ptr->tx_semaphore_suspended_count)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user