Subject:
|
Re: legOS - Does it work for you?
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Thu, 31 Dec 1998 22:02:48 GMT
|
Viewed:
|
1639 times
|
| |
| |
> Not sure if this is your problem, but most malloc implementations are
> not thread safe. Try putting your old malloc back with a lock around
> it and see if that improves it.
I did make several changes to the malloc I found on the net.
In the init fuction I created an mm_semaphore with sem_init.
In both the malloc and the free functions I sandwiched
the code between a sem_wait and sem_post call. This still
had problems.
I'm still looking for a small and simple malloc routine.
Any pointers appreciated. I looked at the one that comes
with linux but decided it was way to complex for my needs.
|
|
Message is in Reply To:
| | RE: legOS - Does it work for you?
|
| (...) Not sure if this is your problem, but most malloc implementations are not thread safe. Try putting your old malloc back with a lock around it and see if that improves it. -Allen -- Did you check the web site first?: (URL) (26 years ago, 31-Dec-98, to lugnet.robotics)
|
12 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
Active threads in Robotics
|
|
|
|