You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Jiri Daněk (Jira)" <ji...@apache.org> on 2021/11/08 07:40:00 UTC

[jira] [Updated] (DISPATCH-2271) Implement win32/threading.c

     [ https://issues.apache.org/jira/browse/DISPATCH-2271?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jiri Daněk updated DISPATCH-2271:
---------------------------------
    Description: 
The possible APIs to use are
# openmp
# boost
# pthreads for windows
# windowsthreads
# C11 threads

Boost and pthreads for windows would be extra dependencies. Boost would require C++.

Here is a blog which shows such wrapper done with WindowsThreads, https://nachtimwald.com/2019/04/05/cross-platform-thread-wrapper/. There is nothing surprising in it, except for the {{exclusive}} flag for SRWLock which I did not figure by myself (I was not sure if it is enough to handle all transitions).

  was:
The possible APIs to use are
# openmp
# boost
# pthreads for windows
# windowsthreads

Boost and pthreads for windows would be extra dependencies. Boost would require C++.

Here is a blog which shows such wrapper done with WindowsThreads, https://nachtimwald.com/2019/04/05/cross-platform-thread-wrapper/. There is nothing surprising in it, except for the {{exclusive}} flag for SRWLock which I did not figure by myself (I was not sure if it is enough to handle all transitions).


> Implement win32/threading.c
> ---------------------------
>
>                 Key: DISPATCH-2271
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-2271
>             Project: Qpid Dispatch
>          Issue Type: Sub-task
>            Reporter: Jiri Daněk
>            Priority: Major
>
> The possible APIs to use are
> # openmp
> # boost
> # pthreads for windows
> # windowsthreads
> # C11 threads
> Boost and pthreads for windows would be extra dependencies. Boost would require C++.
> Here is a blog which shows such wrapper done with WindowsThreads, https://nachtimwald.com/2019/04/05/cross-platform-thread-wrapper/. There is nothing surprising in it, except for the {{exclusive}} flag for SRWLock which I did not figure by myself (I was not sure if it is enough to handle all transitions).



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org