ObjFW  Check-in [41d9be6b3b]

Overview
Comment:+[sleepForTimeInterval:]: Just return on negative
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 41d9be6b3b0ab64625373f1e5866cee71adb55f976dddfd57ed229be10b47725
User & Date: js on 2015-05-16 11:15:37
Other Links: manifest | tags
Context
2015-05-16
11:16
utils/ofhttp: Default User-Agent to OFHTTP check-in: 625377fca5 user: js tags: trunk
11:15
+[sleepForTimeInterval:]: Just return on negative check-in: 41d9be6b3b user: js tags: trunk
2015-05-14
09:58
Clean up a few file and socket related checks check-in: b37fdafac1 user: js tags: trunk
Changes

Modified PLATFORMS.md from [a39b384fb0] to [a8e35d431b].

73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
-----

  * Architectures: Alpha, ARMv6, ARM64, m68k, MIPS (O32), PPC, SH4, x86, x86_64
  * Compilers: Clang 3.0-3.6, GCC 4.2, GCC 4.6-4.8
  * Runtimes: ObjFW


MacOS X
-------

  * OS Versions: 10.5, 10.7-10.10
  * Architectures: PPC, PPC64, x86, x86_64
  * Compilers: Clang 3.1-3.7, LLVM GCC 4.2.1
  * Runtimes: Apple, ObjFW









|
|







73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
-----

  * Architectures: Alpha, ARMv6, ARM64, m68k, MIPS (O32), PPC, SH4, x86, x86_64
  * Compilers: Clang 3.0-3.6, GCC 4.2, GCC 4.6-4.8
  * Runtimes: ObjFW


Mac OS X
--------

  * OS Versions: 10.5, 10.7-10.10
  * Architectures: PPC, PPC64, x86, x86_64
  * Compilers: Clang 3.1-3.7, LLVM GCC 4.2.1
  * Runtimes: Apple, ObjFW


Modified src/OFThread.m from [bdd0b31d38] to [785aa7fe26].

161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
	return thread->_threadDictionary;
}
#endif

+ (void)sleepForTimeInterval: (of_time_interval_t)timeInterval
{
	if (timeInterval < 0)
		@throw [OFOutOfRangeException exception];

#if defined(_WIN32)
	if (timeInterval * 1000 > UINT_MAX)
		@throw [OFOutOfRangeException exception];

	Sleep((unsigned int)(timeInterval * 1000));
#elif defined(HAVE_NANOSLEEP)







|







161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
	return thread->_threadDictionary;
}
#endif

+ (void)sleepForTimeInterval: (of_time_interval_t)timeInterval
{
	if (timeInterval < 0)
		return;

#if defined(_WIN32)
	if (timeInterval * 1000 > UINT_MAX)
		@throw [OFOutOfRangeException exception];

	Sleep((unsigned int)(timeInterval * 1000));
#elif defined(HAVE_NANOSLEEP)