Subject:
|
RE: legOS - Does it work for you?
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Thu, 31 Dec 1998 20:39:58 GMT
|
Original-From:
|
Allen Martin <ARM@ihatespamRENDITION.COM>
|
Viewed:
|
1651 times
|
| |
| |
> > Ben you were right! I replace the malloc/free routines with
> > a very simple array based allocation scheme and everything
> > works great. I guess the other malloc I grabbed off the net
> > wasn't any good either.
>
> Not necessarily - it may be that the replacement happens to
> put things
> were some memory corruption doesn't hit them...
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?: http://www.crynwr.com/lego-robotics
|
|
Message has 1 Reply: | | Re: legOS - Does it work for you?
|
| (...) 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 (...) (26 years ago, 31-Dec-98, to lugnet.robotics)
|
Message is in Reply To:
12 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
Active threads in Robotics
|
|
|
|