Statistics
| Branch: | Tag: | Revision:

root / xseg / peers / user / peer.h @ 6652c5b8

History | View | Annotate | Download (4.8 kB)

# Date Author Comment
5c814148 07/08/2013 12:03 pm Filippos Giannakos

Add include guards to peer.h

cb5cf301 03/14/2013 06:00 pm Filippos Giannakos

Remove unused stuff and reduce warnings

Remove unused pthread_* stuff and modify variable location to reduce warnings
because of the define-based compilation.

0132045a 03/14/2013 06:00 pm Filippos Giannakos

Split peer request queues.

Each thread has its own peer request queue, frow which it allocates data. If
this queue is empty, it tries to "steal" from the "next" thread. This greatly
reduces lock congestion to the peer request queue.

840248c4 03/14/2013 06:00 pm Filippos Giannakos

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.

839f875e 03/11/2013 11:52 am Alex Pyrgiotis

Fix missing function declaration

de4c09bb 03/11/2013 11:51 am Alex Pyrgiotis

Complete unification of thread_loop/peerd_loop

0beaf982 03/11/2013 11:43 am Alex Pyrgiotis

Unify thread loop with peerd_loop

Since peerd_loop with thread_loop don't have many differences between
them, they can be unified in a single loop. TODO is to choose a unified
name for both threads and peers, as well as fault check the
implementation.

8107a952 03/11/2013 11:42 am Alex Pyrgiotis

Add support for custom peer loop

There is a new field in struct peerd called "custom_peerd_loop". If any
peer wants to use its own loop instead of the generic loop, it can plug
it in that field.

0bb5f1fe 02/27/2013 06:12 pm Filippos Giannakos

Add defer support to peers

Add support to peer skeleton to defer requests to another peer, by forwarding
requests to another port.

0278caf0 02/08/2013 03:44 pm Filippos Giannakos

Fix compilation warnings

6830c9ff 12/10/2012 07:09 pm Filippos Giannakos

add license headers

702259a0 12/03/2012 07:18 pm Filippos Giannakos

make mapper use macros for reading arguments. also check than arguments were provided

8de1e033 11/27/2012 01:21 pm Filippos Giannakos

add finalize function to peers and make mapper close all maps before quitting

2ae03e3b 11/22/2012 01:18 pm Filippos Giannakos

add improved argument parsing. also add helper messages

dabec8ad 11/02/2012 05:09 pm Giannakos Filippos

complete merging speer - mpeer skeletons

42ae81cb 10/23/2012 04:15 pm Filippos Giannakos

merge peers skeletons