[ 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to