Skip to content

[CPP]. Compilation Error on Windows Platform: Suggest Replacing pthread.h with std::thread and std::mutex for Cross-Platform Support" #349

Open
@hongyan32

Description

@hongyan32

During the compilation process of the current project on the Windows platform, an error has emerged. It has been found that the project references "pthread.h", which is exclusive to the Unix platform. In order to make the project support cross-platform compatibility, it is recommended that "pthread.h" be substituted with "thread" and "mutex" from the std standard library.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions