mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-30 05:29:41 +01:00
* fix(Thread_POSIX): sleep() poor performance #3703 * chore(vscode): add file associations * fix(TaskManager): waits for all threads in the ThreadPool #3704 * fix(Thread): call std::this_thread::sleep_for() to sleep #3703 * fix(PollSet): wakeup fd is never read #3708 * feat(Thread): Add Thread::set/getAffinity() #3709 * doc(Thread): Thread::trySleep() assertion #3710 * fix(PollSet): wakeup fd is never read (windows portion and some other optimizations) #3708 * feat(SocketReactor): improvements #3713 * chore(ThreadTest): add missing include * fix(PollSet): wakeup fd is never read #3708 * fix(Any): #3682 #3683 #3692 #3712 * fix(mingw): lowercase winsock2 and iphlpapi to allow cross compile #3711 * feat(Thread): Add Thread::set/getAffinity() #3709 * chore(SocketReactor): one-liners inlined, removed redundant try/catch in dospatch, remove unused onBusy() * feat(SocketReactor): add socket to ErrorNotification * fix(SocketReactor): pollTimeout assignment and ConnectorTest leak
42 lines
794 B
C
42 lines
794 B
C
//
|
|
// UnWindows.h
|
|
//
|
|
// Library: Foundation
|
|
// Package: Core
|
|
// Module: UnWindows
|
|
//
|
|
// Simple wrapper around the <windows.h> header file.
|
|
//
|
|
// Copyright (c) 2007, Applied Informatics Software Engineering GmbH.
|
|
// and Contributors.
|
|
//
|
|
// SPDX-License-Identifier: BSL-1.0
|
|
//
|
|
|
|
|
|
#ifndef Foundation_UnWindows_INCLUDED
|
|
#define Foundation_UnWindows_INCLUDED
|
|
|
|
|
|
// Reduce bloat
|
|
#if defined(_WIN32)
|
|
#if !defined(WIN32_LEAN_AND_MEAN) && !defined(POCO_BLOATED_WIN32)
|
|
#define WIN32_LEAN_AND_MEAN
|
|
#endif
|
|
#endif
|
|
|
|
// disable min/max macros
|
|
#define NOMINMAX
|
|
|
|
#if !defined(POCO_NO_WINDOWS_H)
|
|
#include <windows.h>
|
|
#ifdef __MINGW32__
|
|
#include <winsock2.h>
|
|
#include <iphlpapi.h>
|
|
#include <ws2tcpip.h>
|
|
#endif // __MINGW32__
|
|
#endif
|
|
|
|
|
|
#endif // Foundation_UnWindows_INCLUDED
|