ObjFW  Check-in [2db4aee23f]

Overview
Comment:Warn if atomic ops AND spinlocks are missing.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 2db4aee23f16387e152d614299e6daf2989006464fd5659e9b2985bdc831dde9
User & Date: js on 2013-07-05 20:02:01
Other Links: manifest | tags
Context
2013-07-06
00:21
Add MIPS/ELF assembly lookup implementation. check-in: 9c630f8f86 user: js tags: trunk
2013-07-05
20:02
Warn if atomic ops AND spinlocks are missing. check-in: 2db4aee23f user: js tags: trunk
16:54
Map WSA error codes to standard error codes. check-in: e790f0e1f0 user: js tags: trunk
Changes

Modified configure.ac from [8591f0efb5] to [2ac906deae].

931
932
933
934
935
936
937













	printf "  ** Note: Your compiler does not seem to "
	echo "accept -fobjc-runtime=objfw."
	printf "  ** To get optimal performance and be able to use all "
	echo "features, you should "
	echo "  ** install Clang >= 3.2."
	echo
])




















>
>
>
>
>
>
>
>
>
>
>
>
>
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
	printf "  ** Note: Your compiler does not seem to "
	echo "accept -fobjc-runtime=objfw."
	printf "  ** To get optimal performance and be able to use all "
	echo "features, you should "
	echo "  ** install Clang >= 3.2."
	echo
])

AS_IF([test x"$enable_threads" != x"no" -a x"$atomic_ops" = x"none" \
    -a x"ac_cv_func_pthread_spin_lock" != x"yes"], [
	echo
	printf "  ** Warning: You have enabled threads, but neither atomic "
	echo "operations nor"
	printf "  ** spinlocks are available. Expect *very* poor performance, "
	echo "as a mutex will"
	printf "  ** be locked for every retain and release! If you don't "
	echo "need threads, try"
	echo "  ** --disable-threads to work around this problem."
	echo
])

Modified src/exceptions/OFException.m from [bf88fcb9d3] to [84994201ec].

26
27
28
29
30
31
32
33
34
35
36
37
38
39
40

#import "OFException.h"
#import "OFString.h"
#import "OFArray.h"

#import "autorelease.h"

#ifdef _WIN32
# include <errno.h>
# include <winerror.h>
#endif

struct _Unwind_Context;
typedef enum {
	_URC_OK		  = 0,







|







26
27
28
29
30
31
32
33
34
35
36
37
38
39
40

#import "OFException.h"
#import "OFString.h"
#import "OFArray.h"

#import "autorelease.h"

#if defined(_WIN32) && defined(OF_HAVE_SOCKETS)
# include <errno.h>
# include <winerror.h>
#endif

struct _Unwind_Context;
typedef enum {
	_URC_OK		  = 0,