Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はマルチスレッドソケットライブラリ(プラットフォームに依存しない)に取り組んでいます。現在、WINAPIを使用してWindowsでスレッドを作成していますが、ライブラリをLinuxに移植する必要があります。
プログラムをLinuxおよびwin32でコンパイルする必要がある場合、コードをpthreadまたはWin32スレッドラッパーに移植しません。
std::threadを使用します
std::thread th ( my_func, arg1, arg2...);