Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion utility/rtos_compatibility_layers/posix/px_cond_broadcast.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* SPDX-License-Identifier: MIT
**************************************************************************/

// Some portions generated by Copilot (Opus 5).

/**************************************************************************/
/**************************************************************************/
Expand Down Expand Up @@ -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;

Expand Down
3 changes: 2 additions & 1 deletion utility/rtos_compatibility_layers/posix/px_cond_destroy.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* SPDX-License-Identifier: MIT
**************************************************************************/

// Some portions generated by Copilot (Opus 5).

/**************************************************************************/
/**************************************************************************/
Expand Down Expand Up @@ -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)
Expand Down
3 changes: 2 additions & 1 deletion utility/rtos_compatibility_layers/posix/px_cond_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* SPDX-License-Identifier: MIT
**************************************************************************/

// Some portions generated by Copilot (Opus 5).

/**************************************************************************/
/**************************************************************************/
Expand Down Expand Up @@ -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);
Expand Down
3 changes: 2 additions & 1 deletion utility/rtos_compatibility_layers/posix/px_cond_signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* SPDX-License-Identifier: MIT
**************************************************************************/

// Some portions generated by Copilot (Opus 5).

/**************************************************************************/
/**************************************************************************/
Expand Down Expand Up @@ -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)
{
Expand Down