зеркало из https://github.com/Azure/c-pal.git
Update Ubuntu OS to 22.04 (#277)
Co-authored-by: Jelani Brandon <jebrando@microsoft.com>
This commit is contained in:
Родитель
bdcd1ad58e
Коммит
1349508f19
|
@ -143,7 +143,7 @@ jobs:
|
|||
- job: linuxubuntu
|
||||
displayName: 'Build Linux Ubuntu'
|
||||
pool:
|
||||
name: Azure-MessagingStore-LinuxBuildMachinePool
|
||||
name: Azure-MsgStore-Linux2204BuildMachinePool
|
||||
demands:
|
||||
- linux
|
||||
|
||||
|
|
|
@ -33,13 +33,14 @@
|
|||
<linux_sys_timer>
|
||||
Memcheck:Leak
|
||||
match-leak-kinds: possible
|
||||
...
|
||||
fun:calloc
|
||||
fun:allocate_dtv
|
||||
fun:_dl_allocate_tls
|
||||
fun:allocate_stack
|
||||
fun:pthread_create@@GLIBC_2.2.5
|
||||
fun:__start_helper_thread
|
||||
fun:pthread_create@@GLIBC_*
|
||||
...
|
||||
fun:__pthread_once_slow
|
||||
fun:timer_create@@GLIBC_2.3.3
|
||||
fun:timer_create@@GLIBC_*
|
||||
...
|
||||
}
|
|
@ -1 +1 @@
|
|||
Subproject commit 05542fd1b9723e579f04f9d98613c409f0974c2b
|
||||
Subproject commit 416b92461856c0876fb7f7aeb5837729fefbe71a
|
|
@ -1 +1 @@
|
|||
Subproject commit 01600750cdbfba8a01c923c62cb8b48de1cf6543
|
||||
Subproject commit f75063d969c0d5be403133970000158ffb3a1131
|
|
@ -111,11 +111,7 @@ static void on_timer_callback(sigval_t timer_data)
|
|||
static void internal_close(THREADPOOL* threadpool)
|
||||
{
|
||||
/* Codes_SRS_THREADPOOL_LINUX_07_026: [ Otherwise, threadpool_close shall call sm_close_begin. ]*/
|
||||
if(sm_close_begin(threadpool->sm) != SM_EXEC_GRANTED)
|
||||
{
|
||||
LogError("sm_close_begin failed.");
|
||||
}
|
||||
else
|
||||
if(sm_close_begin(threadpool->sm) == SM_EXEC_GRANTED)
|
||||
{
|
||||
/* Codes_SRS_THREADPOOL_LINUX_07_089: [ threadpool_close shall signal all threads threadpool is closing by calling InterlockedHL_SetAndWakeAll. ]*/
|
||||
(void)InterlockedHL_SetAndWakeAll(&threadpool->state, 1);
|
||||
|
|
|
@ -40,6 +40,8 @@ typedef struct WRAP_DATA_TAG
|
|||
char mem[10];
|
||||
} WRAP_DATA;
|
||||
|
||||
#define TEST_TIMEOUT_VALUE 60000 // 60 seconds
|
||||
|
||||
TEST_DEFINE_ENUM_TYPE(INTERLOCKED_HL_RESULT, INTERLOCKED_HL_RESULT_VALUES);
|
||||
|
||||
BEGIN_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)
|
||||
|
@ -192,13 +194,14 @@ TEST_FUNCTION(MU_C3(scheduling_, N_WORK_ITEMS, _work_items))
|
|||
ASSERT_ARE_EQUAL(int, 0, threadpool_schedule_work(threadpool, threadpool_task_wait_60_millisec, (void*)&thread_counter));
|
||||
}
|
||||
|
||||
LogInfo("Scheduled threads waiting for threads to complete");
|
||||
|
||||
// assert
|
||||
do
|
||||
{
|
||||
wait_on_address(&thread_counter, 1, UINT32_MAX);
|
||||
wait_on_address(&thread_counter, 1, TEST_TIMEOUT_VALUE);
|
||||
} while (thread_counter != num_threads);
|
||||
|
||||
//ThreadAPI_Sleep(120*1000);
|
||||
ASSERT_ARE_EQUAL(int32_t, thread_counter, num_threads, "Thread counter has timed out");
|
||||
|
||||
// cleanup
|
||||
|
|
Загрузка…
Ссылка в новой задаче