1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-11-27 01:27:39 +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:
hp.com!davidm 2005-05-20 09:48:08 +00:00
parent ead43e8545
commit 670dd57e82

View file

@ -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;
} }