[Boost-bugs] [Boost C++ Libraries] #11732: Use CreateEventW instead of CreateEvent

Subject: [Boost-bugs] [Boost C++ Libraries] #11732: Use CreateEventW instead of CreateEvent
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-10-15 10:23:02

#11732: Use CreateEventW instead of CreateEvent
 Reporter: Kim Gräsman <kim.grasman@…> | Owner: chris_kohlhoff
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: asio
  Version: Boost 1.57.0 | Severity: Problem
 Keywords: |
 We use boost.asio together with the Poco library.

 Poco has decided to #undef some common Windows API wrappers to avoid weird
 symbol decoration, among them CreateEvent.

 The Windows convention is to have a #define for Function, which expands to
 FunctionA for non-Unicode builds and FunctionW for Unicode builds.

 Since asio does not appear to use named events (always passes 0 for the
 event name), it doesn't matter which one it uses. On Windows, the -A
 functions are always wrappers for the -W functions, so it makes sense to
 use the wide-char variant (should save at least a jump.)

 So I suggest that boost.asio should use CreateEventW consistently instead
 of CreateEvent.

Ticket URL: <https://svn.boost.org/trac/boost/ticket/11732>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:19 UTC