在 2026-9-10 20:27, Kirill Makurin 写道:
I wrote:I'll push new version for CI run later today, and if it passes, I'll send it to the list.Most of CI passes except one issue when compiling winpthreads with clang; see https://github.com/ maiddaisuki/mingw-w64/actions/runs/34466771691/job/102837072791 <https://github.com/maiddaisuki/mingw- w64/actions/runs/34466771691/job/102837072791>.Using `RTL_SIZEOF_THROUGH_FIELD` for allocation size results in a -Walloc-size diagnostic from clang; we should be able to silence it with a pragma.
Try this without a union, which is rather COM-ish:
struct WinpthreadsMutexBase
{
const WinpthreadsMutexVtable *vtable;
};
struct WinpthreadsNormalMutex
{
const WinpthreadsMutexVtable *vtable;
HANDLE Event;
LONG LockState;
};
struct WinpthreadsErrorCheckMutex
{
const WinpthreadsMutexVtable *vtable;
HANDLE Event;
LONG LockState;
DWORD Owner;
};
And, does the recursive mutex really require a 64-bit recursion count? A 32-bit
count is usually sufficient.
--
Best regards,
LIU Hao
OpenPGP_signature.asc
Description: OpenPGP digital signature
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
