Fix peer termination.
authorFilippos Giannakos <philipgian@grnet.gr>
Thu, 14 Mar 2013 09:27:34 +0000 (11:27 +0200)
committerFilippos Giannakos <philipgian@grnet.gr>
Thu, 14 Mar 2013 16:00:21 +0000 (18:00 +0200)
commit840248c47b3f50b1f6132fd50f4886d02c1e28ee
tree28ce881e35478637593e8c04373e4623fbc08578
parent0132045a2e45a8b93d320378e73e7e45b1a5af57
Fix peer termination.

Peer checks if all peer requests are free in all thread, and then proceeds to
gracefull shutdown.

Also introduce pthread specific variable, holding the struct thread for each
thread.
xseg/peers/user/peer.c
xseg/peers/user/peer.h