Strictly atomic operations
Sebastian Huber
sebastian.huber at embedded-brains.de
Wed Jan 25 06:23:26 UTC 2017
On 24/01/17 18:25, Matt Rippa wrote:
> Thanks for the replies. I'm working on porting our primary mirror
> control system to RTEMS.
Which API did you choose? I would use the POSIX API and the RTEMS
master. Our focus is currently on documentation updates, warning fixes,
ticket updates and so on to prepare the RTEMS 4.12 release.
> It's difficult to tell why taskLock() was chosen over a Mutex. Perhaps
> it was brute force. It's just two lines of code they were trying to
> protect (pointer assignments), and there are no higher priority tasks
> which could possibly interfere. I'll stick with your recommendations.
If its just an assignment of two pointers, then I would use a
pthread_spinlock_t.
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail : sebastian.huber at embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
More information about the users
mailing list