Overview
Comment: | Use a mutex for gai_strerror() if necessary |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
724e07f92323ca71e56060c9429b06c1 |
User & Date: | js on 2015-02-20 18:41:40 |
Other Links: | manifest | tags |
Context
2015-02-20
| ||
18:52 | Remove useless descriptions in some exceptions check-in: e8bb29e8e8 user: js tags: trunk | |
18:41 | Use a mutex for gai_strerror() if necessary check-in: 724e07f923 user: js tags: trunk | |
2015-02-19
| ||
00:08 | OFDictionary_hashtable: Use release in dealloc check-in: ca15726954 user: js tags: trunk | |
Changes
Modified src/exceptions/OFAddressTranslationFailedException.m from [f2e2a2e8ce] to [99c1abc7ff].
︙ | ︙ | |||
119 120 121 122 123 124 125 | _host]; else return @"An address could not be translated!"; #ifndef _WIN32 } # ifdef HAVE_GETADDRINFO | > > > > > > | | | > | | | | | > > > > > > | 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 | _host]; else return @"An address could not be translated!"; #ifndef _WIN32 } # ifdef HAVE_GETADDRINFO # if defined(OF_HAVE_THREADS) && !defined(HAVE_THREADSAFE_GETADDRINFO) if (!of_mutex_lock(&mutex)) @throw [OFLockFailedException exception]; @try { # endif if (_host != nil) return [OFString stringWithFormat: @"The host %@ could not be translated to an " @"address: %s", _host, gai_strerror(_error)]; else return [OFString stringWithFormat: @"An address could not be translated: %s", gai_strerror(_error)]; # if defined(OF_HAVE_THREADS) && !defined(HAVE_THREADSAFE_GETADDRINFO) } @finally { if (!of_mutex_unlock(&mutex)) @throw [OFUnlockFailedException exception]; } # endif # else # ifdef OF_HAVE_THREADS if (!of_mutex_lock(&mutex)) @throw [OFLockFailedException exception]; @try { # endif |
︙ | ︙ |