51daeb7147
- Fixed deadlock in xsi_sem_undo - RecordUndo - Fixed issue in xsi_sem_undo: if the semaphore set does not exist anymore, ignore the request but do remove the process from the sUndoList, which wasn't previously done. - free() in ClearUndos was called with interrupts disabled - when a semaphore set ends to exist, remove all it's sem_undo request as it's ID will be reused in the future. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26727 a95241bf-73f2-0310-859d-f6bbb57e9c96
19 lines
365 B
C
19 lines
365 B
C
/*
|
|
* Copyright 2008, Salvatore Benedetto, salvatore.benedetto@gmail.com.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef SYSTEM_XSI_SEM_H
|
|
#define SYSTEM_XSI_SEM_H
|
|
|
|
/*
|
|
* Shared union used by the semctl option argument.
|
|
* The user should declare it explicitly
|
|
*/
|
|
union semun {
|
|
int val;
|
|
struct semid_ds *buf;
|
|
unsigned short *array;
|
|
};
|
|
|
|
#endif
|