[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-devel
Subject: Re: #1 wininet: Make resolving hostnames thread-safe. try2
From: "Rob Shearman" <robertshearman () gmail ! com>
Date: 2008-05-31 21:50:42
Message-ID: 1096648c0805311450m79315905wf094329d8814442d () mail ! gmail ! com
[Download RAW message or body]
2008/5/31 Hans Leidekker <hans@it.vu.nl>:
> Make resolving hostnames thread-safe.
>
> +/* critical section to protect non-reentrant gethostbyname() */
> +CRITICAL_SECTION cs_gethostbyname;
> +static CRITICAL_SECTION_DEBUG critsect_debug =
> +{
> + 0, 0, &cs_gethostbyname,
> + { &critsect_debug.ProcessLocksList, &critsect_debug.ProcessLocksList },
> + 0, 0, { (DWORD_PTR)(__FILE__ ": cs_gethostbyname") }
> +};
> +CRITICAL_SECTION cs_gethostbyname = { &critsect_debug, -1, 0, 0, 0, 0 };
cs_gethostbyname should be static.
--
Rob Shearman
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic