mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-23 07:57:38 +01:00
Include "libunwind_i.h" instead of "libunwind.h" and a whole bunch of standard
header files. Use lock_release instead of mutex_unlock/sigprocmask calls. (Logical change 1.294)
This commit is contained in:
parent
ead43e8545
commit
670dd57e82
1 changed files with 3 additions and 11 deletions
|
@ -23,14 +23,7 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||||
|
|
||||||
#include <assert.h>
|
#include "libunwind_i.h"
|
||||||
#include <stdlib.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
|
|
||||||
#include <sys/mman.h>
|
|
||||||
|
|
||||||
#include "libunwind.h"
|
|
||||||
#include "mempool.h"
|
#include "mempool.h"
|
||||||
|
|
||||||
#define MAX_ALIGN (sizeof (long double))
|
#define MAX_ALIGN (sizeof (long double))
|
||||||
|
@ -76,8 +69,7 @@ sos_alloc (size_t size)
|
||||||
assert (mem < sos_memory + sizeof (sos_memory));
|
assert (mem < sos_memory + sizeof (sos_memory));
|
||||||
sos_memp = mem;
|
sos_memp = mem;
|
||||||
}
|
}
|
||||||
mutex_unlock(&sos_lock);
|
lock_release (&sos_lock, saved_mask);
|
||||||
sigprocmask (SIG_SETMASK, &saved_mask, NULL);
|
|
||||||
#endif
|
#endif
|
||||||
return mem;
|
return mem;
|
||||||
}
|
}
|
||||||
|
@ -169,7 +161,7 @@ mempool_alloc (struct mempool *pool)
|
||||||
obj = pool->free_list;
|
obj = pool->free_list;
|
||||||
pool->free_list = obj->next;
|
pool->free_list = obj->next;
|
||||||
}
|
}
|
||||||
lock_release(&pool->lock, saved_mask);
|
lock_release (&pool->lock, saved_mask);
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue