[prev in list] [next in list] [prev in thread] [next in thread] 

List:       orocos-dev
Subject:    [Orocos-Dev] mutex release vs mutex acquire
From:       peter.soetens () gmail ! com (Peter Soetens)
Date:       2010-03-16 10:19:39
Message-ID: 201003161119.39630.peter.soetens () gmail ! com
[Download RAW message or body]

On Thursday 11 March 2010 11:27:18 Ruben Smits wrote:
> On Fri, Feb 26, 2010 at 3:18 PM, Peter Soetens <peter.soetens at gmail.com> 
wrote:
> > On Friday 26 February 2010 14:42:34 jpmzometa at gmail.com wrote:
> >> Sorry to disappoint you Peter, but the code on
> >>  http://svn.mech.kuleuven.be/repos/orocos/branches/rtt/rtt-1.10 does not
> >>  compile.
> >>
> >> The error follows:
> >>
> >> /usr/xenomai/include/xenomai/native/mutex.h: In function ?int
> >>  rtos_mutex_rec_lock(rt_rec_mutex_t*)?:
> >>  /usr/xenomai/include/xenomai/native/mutex.h:167: error: too many
> >> arguments to function ?int rt_mutex_release(RT_MUTEX*)?
> >>  /export/home/localadm/src/orocos-rtt-1.10.2-svn/rtt-1.10/src/os/xenomai
> >>/fo si.h:284: error: at this point in file
> >>
> >> you are using rt_mutex_release() instead of rt_mutex_acquire() for
> >> locking the mutex. I assume you did not compile the code yourself ;)
> >
> > Thanks for pointing out. The code on the 2.0 mainline, with which I'm
> > working most, did not have this typo. Also the rtt trunk didn't have it.
> > Strange. I have comitted the fix.
> 
> Is this fix also committed to the rtt-1.10 branch?

This commit was only on the rtt-1.10 branch, r31436.

Peter

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic