summaryrefslogtreecommitdiff
path: root/ot_mutex.c
AgeCommit message (Collapse)Author
2009-02-10unify lock and unlock code styleerdgeist
2009-01-16Use a self pipe to wake from io_wait when a thread finished his work.erdgeist
2009-01-15Add comments, rename our struct http_data h to cookie, all clientsockets to sock, all size_t from socket_recvs to byte_count. Make signal handler set ↵erdgeist
default handler for the second SIGINT
2009-01-13V6erdgeist
2009-01-03Make opentracker ANSI C again.erdgeist
2009-01-02* opentracker now drops permissions in correct order and really chroots() if ran as rooterdgeist
* lock passing between add_peer_to_torrent and return_peers_for_torrent is now avoided by providing a more general add_peer_to_torrent_and_return_peers function that can be used with NULL parameters to not return any peers (in sync case) * in order to keep a fast overview how many torrents opentracker maintains, every mutex_bucket_unlock operation expects an additional integer parameter that tells ot_mutex.c how many torrents have been added or removed. A function mutex_get_torrent_count has been introduced.
2008-12-08Make all torrents in their buckets sorted again.erdgeist
2008-12-06Make mutex_lock_bucket_by_hash generic to any OT_BUCKET_COUNTerdgeist
2008-11-28The BIG refactoring [tm]. Too many changes to count them. If it doesn't suite you, revert to last version.erdgeist
2008-10-28Whitespace fixeserdgeist
2008-10-28fixed typodenis
2007-12-20Introduce some kind of versioningerdgeist
2007-12-03Simplify includeserdgeist
2007-11-22Introducing compression task flagserdgeist
2007-11-20Tested for a too strict condition, we do need the correct tasktype AND an empty taskid, not the other way arounderdgeist
2007-11-19Cleanup now moved to its own thread, tooerdgeist
2007-11-18Reflect new task-classes model in mutex queueerdgeist
2007-11-15tasklist code now tested in a multi threaded environment.erdgeist
2007-11-14Introducing the workqueueerdgeist
2007-11-06No one can get access to buckets now without locking them. Also split up the trackerlogic.c-monster in functional sub-units. HEADS UP: this code is untested ↵erdgeist
and not considered stable.
2007-11-06Rename source files in an ot_ fashionerdgeist