History | View | Annotate | Download (4.8 kB)
Add include guards to peer.h
Remove unused stuff and reduce warnings
Remove unused pthread_* stuff and modify variable location to reduce warningsbecause of the define-based compilation.
Split peer request queues.
Each thread has its own peer request queue, frow which it allocates data. Ifthis queue is empty, it tries to "steal" from the "next" thread. This greatlyreduces lock congestion to the peer request queue.
Fix peer termination.
Peer checks if all peer requests are free in all thread, and then proceeds togracefull shutdown.
Also introduce pthread specific variable, holding the struct thread for eachthread.
Fix missing function declaration
Complete unification of thread_loop/peerd_loop
Unify thread loop with peerd_loop
Since peerd_loop with thread_loop don't have many differences betweenthem, they can be unified in a single loop. TODO is to choose a unifiedname for both threads and peers, as well as fault check theimplementation.
Add support for custom peer loop
There is a new field in struct peerd called "custom_peerd_loop". If anypeer wants to use its own loop instead of the generic loop, it can plugit in that field.
Add defer support to peers
Add support to peer skeleton to defer requests to another peer, by forwardingrequests to another port.
Fix compilation warnings
add license headers
make mapper use macros for reading arguments. also check than arguments were provided
add finalize function to peers and make mapper close all maps before quitting
add improved argument parsing. also add helper messages
complete merging speer - mpeer skeletons
merge peers skeletons