Changeset 24956 in vbox for trunk/src/VBox/Runtime/r0drv
- Timestamp:
- Nov 25, 2009 2:26:50 PM (15 years ago)
- Location:
- trunk/src/VBox/Runtime/r0drv/linux
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/linux/semevent-r0drv-linux.c
r21538 r24956 169 169 lTimeout = schedule_timeout(lTimeout); 170 170 171 after_wait(&Wait); 172 171 173 /* Check if someone destroyed the semaphore while we were waiting. */ 172 174 if (pEventInt->u32Magic != RTSEMEVENT_MAGIC) -
trunk/src/VBox/Runtime/r0drv/linux/semeventmulti-r0drv-linux.c
r21337 r24956 181 181 lTimeout = schedule_timeout(lTimeout); 182 182 183 after_wait(&Wait); 184 183 185 /* Check if someone destroyed the semaphore while we were waiting. */ 184 186 if (pThis->u32Magic != RTSEMEVENTMULTI_MAGIC) -
trunk/src/VBox/Runtime/r0drv/linux/semmutex-r0drv-linux.c
r21337 r24956 170 170 lTimeout = schedule_timeout(lTimeout); 171 171 172 after_wait(&Wait); 173 172 174 /* Check if someone destroyed the semaphore while we was waiting. */ 173 175 if (pMutexInt->u32Magic != RTSEMMUTEX_MAGIC) -
trunk/src/VBox/Runtime/r0drv/linux/the-linux-kernel.h
r24902 r24956 125 125 126 126 /* 127 * 2.4 compatibility wrappers127 * 2.4 / early 2.6 compatibility wrappers 128 128 */ 129 129 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 7) … … 163 163 # endif /* < 2.4.29 || >= 2.6.0 */ 164 164 165 #endif /* < 2.6.7 */ 166 167 /* 168 * 2.4 compatibility wrappers 169 */ 170 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0) 171 165 172 # define prepare_to_wait(q, wait, state) \ 166 173 do { \ 174 add_wait_queue(q, wait); \ 167 175 set_current_state(state); \ 168 add_wait_queue(q, wait); \ 176 } while (0) 177 178 # define after_wait(wait) \ 179 do { \ 180 list_del_init(&(wait)->task_list); \ 169 181 } while (0) 170 182 171 183 # define finish_wait(q, wait) \ 172 184 do { \ 173 unsigned long flags; \174 185 set_current_state(TASK_RUNNING); \ 175 spin_lock_irqsave(&(q)->lock, flags); \ 176 list_del_init(&(wait)->task_list); \ 177 spin_unlock_irqrestore(&(q)->lock, flags); \ 178 } while (0) 179 180 #endif /* < 2.6.7 */ 186 remove_wait_queue(q, wait); \ 187 } while (0) 188 189 #else /* >= 2.6.0 */ 190 191 # define after_wait(wait) do {} while (0) 192 193 #endif /* >= 2.6.0 */ 181 194 182 195 /** @def TICK_NSEC
Note:
See TracChangeset
for help on using the changeset viewer.