Moin, moin,
Stephens, Allan wrote:
> Martin wrote:
>
>> By the way, is there a place where all the flags used in TIPC
>> are listed?
>
> Section 2.1 of the TIPC Programmer's Guide
> (http://tipc.sourceforge.net/doc/Programmers_Guide.txt) lists the flags
> supported by each socket call, although perhaps not in the most
> convenient way. (Try searching for names of the form MSG_xxx.) These
> flags are a subset of the standard socket API values, so you can also
> consult a standard socket API reference (I use W. Richard Stevens'
> classic "Unix Network Programming: Volume I") for a list of all possible
> flags, and then refer to the TIPC Programmer's Guide to see which ones
> are currently supported by TIPC.
Thanks :-).
I think I have found my mistake and know everything runs without problems :-D
I think the reason was that I had a wrong order on the starting of the receiver
thread. It looked like this:
Receiver::Receiver() :
thread ( new boost::thread::thread( boost::bind(&runReceiver, this) ),
isAlive ( true ) {};
isAlive is tested in runReceiver(), if it is false the thread will be
terminated. In 'normal' start situations isAlive is initialised before
runReceiver() is called the first time, but if a lot of components are started
at the same time, it could happen, that after the thread is initialised the
processor change to the tread before isAlive is set to true => the thread will
terminate.
The receiver has still added filters to get packets from the TIPC but did not
take them from the TIPC-queue. And this must have had effects to the other
receivers so that they also stopped to get packets.
A change of the constractor has helped:
Receiver::Receiver() :
isAlive ( true ) {
this->thread = new boost::thread::thread( boost::bind(&runReceiver, this);
};
Thanks for all your help and your TIPC is really a nice thing
Martin
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
tipc-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tipc-discussion