[ playerstage-Patches-3256156 ] thread safety of playerc_client_writepacket

"SourceForge.net" <[email protected]>
Newsgroups gmane.science.robotics.playerstage
Message-ID <[email protected]>
Patches item #3256156, was opened at 2011-03-28 22:34
Message generated for change (Tracker Item Submitted) made by jashar
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=433166&aid=3256156&group_id=42445

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Player
Group: Release-3.0
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Jayen Ashar (jashar)
Assigned to: Rich Mattes (jpgr87)
Summary: thread safety of playerc_client_writepacket

Initial Comment:
We've got a player client with two threads: one for sending commands, and one for receiving data.  The two threads use the same playerc_client_t and are in PULL mode.  In pull mode, the player client sends a packet, so in our multi-threaded client, it occasionally collides with sending a command, causing the player server to receive an invalid packet and crash.  I've attached a patch to fix this.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=433166&aid=3256156&group_id=42445

------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.