139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
|
+ (OF_KINDOF(OFURLHandler *))handlerForURL: (OFURL *)URL
{
#ifdef OF_HAVE_THREADS
[mutex lock];
@try {
#endif
return [handlers objectForKey: [URL scheme]];
#ifdef OF_HAVE_THREADS
} @finally {
[mutex unlock];
}
#endif
}
|
|
|
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
|
+ (OF_KINDOF(OFURLHandler *))handlerForURL: (OFURL *)URL
{
#ifdef OF_HAVE_THREADS
[mutex lock];
@try {
#endif
return [handlers objectForKey: URL.scheme];
#ifdef OF_HAVE_THREADS
} @finally {
[mutex unlock];
}
#endif
}
|