* Update dependencies

* Remove an annoying log

* Fix reals
This commit is contained in:
Dan Cristoloveanu 2024-11-15 16:40:33 -08:00 коммит произвёл GitHub
Родитель d04fa8e6c2
Коммит 061edd0e4a
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
5 изменённых файлов: 7 добавлений и 6 удалений

2
deps/c-util поставляемый

@ -1 +1 @@
Subproject commit dfa51a9e6e0fcc3390aa10393f4a4042d077ecf7
Subproject commit 62b62444921ef56413a0c0e52934f1175fe75b31

2
deps/vcpkg поставляемый

@ -1 +1 @@
Subproject commit d9af3f55860791057b19d6d16f86a0605d99782e
Subproject commit 9b5cb8e554487f3edb5d50b80188883846f81e14

Просмотреть файл

@ -29,8 +29,9 @@
#define DEFAULT_RECLAIM_THRESHOLD 1
#define INITIAL_INACTIVE_THREADS_QUEUE_SIZE 16
// Let's have a decent number, if we have 16K inactive threads we'd have issues iterating over them anyway
#define INACTIVE_THREADS_QUEUE_SIZE 16384
#define MAX_INACTIVE_THREADS_QUEUE_SIZE 16384
typedef struct CLDS_HAZARD_POINTER_RECORD_TAG
{
@ -353,7 +354,7 @@ CLDS_HAZARD_POINTERS_HANDLE clds_hazard_pointers_create(void)
}
else
{
TQUEUE(CLDS_HP_INACTIVE_THREAD) inactive_threads = TQUEUE_CREATE(CLDS_HP_INACTIVE_THREAD)(INACTIVE_THREADS_QUEUE_SIZE, NULL, NULL, NULL);
TQUEUE(CLDS_HP_INACTIVE_THREAD) inactive_threads = TQUEUE_CREATE(CLDS_HP_INACTIVE_THREAD)(INITIAL_INACTIVE_THREADS_QUEUE_SIZE, MAX_INACTIVE_THREADS_QUEUE_SIZE, NULL, NULL, NULL);
if (inactive_threads == NULL)
{
LogError("TQUEUE_CREATE(CLDS_HP_INACTIVE_THREAD)(INACTIVE_THREADS_QUEUE_SIZE, false) failed");

Просмотреть файл

@ -46,13 +46,11 @@ static void clds_hazard_pointers_thread_helper_thread_notification(void* context
case THREAD_NOTIFICATIONS_LACKEY_DLL_REASON_THREAD_ATTACH:
/* Codes_SRS_CLDS_HAZARD_POINTERS_THREAD_HELPER_01_006: [ If reason is THREAD_NOTIFICATIONS_LACKEY_DLL_REASON_THREAD_ATTACH, clds_hazard_pointers_thread_helper_thread_notification shall return. ]*/
LogInfo("Got notification: %" PRI_MU_ENUM "", MU_ENUM_VALUE(THREAD_NOTIFICATIONS_LACKEY_DLL_REASON, reason));
break;
case THREAD_NOTIFICATIONS_LACKEY_DLL_REASON_THREAD_DETACH:
{
CLDS_HAZARD_POINTERS_THREAD_HELPER_HANDLE hazard_pointers_helper = context;
LogInfo("Got notification: %" PRI_MU_ENUM "", MU_ENUM_VALUE(THREAD_NOTIFICATIONS_LACKEY_DLL_REASON, reason));
/* Codes_SRS_CLDS_HAZARD_POINTERS_THREAD_HELPER_01_007: [ If reason is THREAD_NOTIFICATIONS_LACKEY_DLL_REASON_THREAD_DETACH, clds_hazard_pointers_thread_helper_thread_notification shall call TlsGetValue obtain the thread local value for the slot created in the clds_hazard_pointers_thread_create. ]*/
CLDS_HAZARD_POINTERS_THREAD_HANDLE hp_thread_handle = TlsGetValue(hazard_pointers_helper->tls_slot);

Просмотреть файл

@ -1,4 +1,6 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license.See LICENSE file in the project root for full license information.
#include "real_srw_lock_ll_renames.h"
#define CLDS_HP_INACTIVE_THREAD real_CLDS_HP_INACTIVE_THREAD