ConnPolicy lock_policy

Dear friends,

I have a connection between two data-flow ports with unsynchronized elements , but with mutexes (LOCKED). The question is that I don't know if I'm configuring correctly the Policy connector. What is wrong on this code?:

  
<struct name="inMessagesConnection" type="ConnPolicy">    
  <simple name="type"         type="short"><value>1</value></simple>
  <simple name="lock_policy"     type="short"><value>1</value></simple>
  <simple name="size"         type="short"><value>200</value></simple>
</struct>
 

Thanks in advance best regards,

enkulator's picture

ConnPolicy lock_policy

Sorry, any mistake isdone in forum website when it is converted from it to
mailing-list...the source code.

<struct name="inMessagesConnection" type="ConnPolicy">
<simple name="type" type="short"><value>1<value><simple>
<simple name="lock" type="short"><value>1<value><simple>
<simple name="size" type="short"><value>200<value><simple>
<struct>

I see a several examples on Lua script and C++ code, but nothing in XML.
thanks in advance

On Tue, Nov 22, 2011 at 17:06, <antonio [dot] castellon [..] ...> wrote:

> Dear friends,
>
> I have a connection between two data-flow ports with unsynchronized
> elements
> , but with mutexes (LOCKED). The question is that I don't know if I'm
> configuring correctly the Policy connector. What is wrong on this code?:
>
>
>
> 1
> 1
> 200
>
>
>
>
>
> Thanks in advance
> best regards,
>
> --
> Orocos-Users mailing list
> Orocos-Users [..] ...
> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
>

ConnPolicy lock_policy

On Tue, Nov 22, 2011 at 5:08 PM, Antonio Castellon
<antonio [dot] castellon [..] ...> wrote:
> Sorry, any mistake isdone in forum website when it is converted from it to
> mailing-list...the source code.
> <struct name="inMessagesConnection" type="ConnPolicy">
>    <simple name="type" type="short"><value>1<value><simple>
>    <simple name="lock" type="short"><value>1<value><simple>
>    <simple name="size" type="short"><value>200<value><simple>
> <struct>
> I see a several examples on Lua script and C++ code, but nothing in XML.
> thanks in advance

For examples in XML, see the DeploymentComponent manual:

http://www.orocos.org/stable/documentation/ocl/v2.x/doc-xml/orocos-deplo...

Peter