21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
#import "OFInitializationFailedException.h"
#import "OFLockFailedException.h"
#import "OFUnlockFailedException.h"
#include "socket_helpers.h"
#if !defined(HAVE_GETADDRINFO) && defined(OF_HAVE_THREADS)
# include "threading.h"
static of_mutex_t mutex;
#endif
@implementation OFAddressTranslationFailedException
#if !defined(HAVE_GETADDRINFO) && defined(OF_HAVE_THREADS)
+ (void)initialize
{
if (self != [OFAddressTranslationFailedException class])
return;
if (!of_mutex_new(&mutex))
@throw [OFInitializationFailedException exception];
|
|
|
|
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
#import "OFInitializationFailedException.h"
#import "OFLockFailedException.h"
#import "OFUnlockFailedException.h"
#include "socket_helpers.h"
#if !defined(HAVE_THREADSAFE_GETADDRINFO) && defined(OF_HAVE_THREADS)
# include "threading.h"
static of_mutex_t mutex;
#endif
@implementation OFAddressTranslationFailedException
#if !defined(HAVE_THREADSAFE_GETADDRINFO) && defined(OF_HAVE_THREADS)
+ (void)initialize
{
if (self != [OFAddressTranslationFailedException class])
return;
if (!of_mutex_new(&mutex))
@throw [OFInitializationFailedException exception];
|