Overview
| Comment: | Don't require C99 in public headers
Using C99 in public headers would require users of ObjFW to compile |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
1664de811f43403ae7195edb61436f44 |
| User & Date: | js on 2016-03-12 16:30:10 |
| Other Links: | manifest | tags |
Context
|
2016-03-12
| ||
| 18:54 | ObjFW.xcodeproj: Increase LastUpgradeCheck (check-in: ec43a5bda4 user: js tags: trunk) | |
| 16:30 | Don't require C99 in public headers (check-in: 1664de811f user: js tags: trunk) | |
| 13:12 | OFSystemInfo: Fix a stupid typo (check-in: 6baf51ebda user: js tags: trunk) | |
Changes
Modified src/threading.h from [2fb0666be8] to [0e441a08b1].
| ︙ | ︙ | |||
200 201 202 203 204 205 206 |
}
static OF_INLINE bool
of_spinlock_lock(of_spinlock_t *spinlock)
{
#if defined(OF_HAVE_ATOMIC_OPS)
# if defined(OF_HAVE_SCHED_YIELD) || defined(OF_WINDOWS)
| > > | | 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 |
}
static OF_INLINE bool
of_spinlock_lock(of_spinlock_t *spinlock)
{
#if defined(OF_HAVE_ATOMIC_OPS)
# if defined(OF_HAVE_SCHED_YIELD) || defined(OF_WINDOWS)
size_t i;
for (i = 0; i < OF_SPINCOUNT; i++)
if (of_spinlock_trylock(spinlock))
return true;
while (!of_spinlock_trylock(spinlock))
# ifndef OF_WINDOWS
sched_yield();
# else
|
| ︙ | ︙ |