返回

static inline voidrwlock_rlock(struct rwlock *lock) { for (;;) { while(lock->write) { __sync_synchronize(); } __sync_add_and_fetch(&lock->read,1); if (lock->write) { __sync_sub_an 『More』

回复 | (2585) | ctx | 2012-09-07 06:14:36