mirror of
https://github.com/espressif/esp-idf.git
synced 2026-05-03 19:41:55 +02:00
pthread: Fix race conditions in existing pthread UTs
This commit is contained in:
@@ -12,6 +12,7 @@ static void *compute_square(void *arg)
|
||||
{
|
||||
int *num = (int *) arg;
|
||||
*num = (*num) * (*num);
|
||||
vTaskDelay(2); // ensure the test task has time to continue execution
|
||||
pthread_exit((void *) num);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user