Skip to content

Change calling CreateThread to _beginthreadex for Windows #8

@Ziglag

Description

@Ziglag

Runtime/Private/Windows/System.cpp:

    void* CreateThread(Runtime::Parallel::ThreadOptionsHelper& refThreadOptions)
    {
        return ::CreateThread(nullptr, static_cast<SIZE_T>(refThreadOptions.stackSize), refThreadOptions.startAddress,
                              refThreadOptions.paramsAddress,
                              refThreadOptions.isSuspendedOnStart ? CREATE_SUSPENDED : 0, &refThreadOptions.threadId);
    }

Replace CreateThread with _beginthreadex

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions