summaryrefslogtreecommitdiff
path: root/ot_mutex.c
AgeCommit message (Collapse)AuthorFilesLines
2018-01-29sync with gitHEADmasterDirk Engling1-1/+1
2009-06-17Remove unnecessary =NULL initialization of static pointers.Dirk Engling1-2/+2
2009-03-04Add a stat option the count bucket stallsDirk Engling1-2/+5
Add an iterator for all torrents. It's slower but for stats it's okay. Move some stats collection stuff to the new iterator. More to come. Start a "report all stats" page. Start fixing the code to identify "busy" networks. Add the concept of hosts allowed to proxy. Add a parser for the X-Forwarded-For: HTTP header. Clean up HTTP Header handling code. (Remove some left overs of now vanished sync code).
2009-02-10unify lock and unlock code styleDirk Engling1-6/+3
2009-01-16Use a self pipe to wake from io_wait when a thread finished his work.Dirk Engling1-1/+8
2009-01-15Add comments, rename our struct http_data h to cookie, all clientsockets to ↵Dirk Engling1-10/+10
sock, all size_t from socket_recvs to byte_count. Make signal handler set default handler for the second SIGINT
2009-01-13V6Dirk Engling1-5/+5
2009-01-03Make opentracker ANSI C again.Dirk Engling1-2/+2
2009-01-02* opentracker now drops permissions in correct order and really chroots() if ↵Dirk Engling1-4/+14
ran as root * 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.Dirk Engling1-3/+3
2008-12-06Make mutex_lock_bucket_by_hash generic to any OT_BUCKET_COUNTDirk Engling1-7/+4
2008-11-28The BIG refactoring [tm]. Too many changes to count them. If it doesn't ↵Dirk Engling1-2/+2
suite you, revert to last version.
2008-10-28Whitespace fixesDirk Engling1-6/+6
2008-10-28fixed typoDenis Ahrens1-2/+2
2007-12-20Introduce some kind of versioningDirk Engling1-1/+5
2007-12-03Simplify includesDirk Engling1-0/+2
2007-11-22Introducing compression task flagsDirk Engling1-1/+1
2007-11-20Tested for a too strict condition, we do need the correct tasktype AND an ↵Dirk Engling1-1/+1
empty taskid, not the other way around
2007-11-19Cleanup now moved to its own thread, tooDirk Engling1-0/+24
2007-11-18Reflect new task-classes model in mutex queueDirk Engling1-5/+6
2007-11-15tasklist code now tested in a multi threaded environment.Dirk Engling1-6/+37
2007-11-14Introducing the workqueueDirk Engling1-0/+156
2007-11-06No one can get access to buckets now without locking them. Also split up the ↵Dirk Engling1-2/+29
trackerlogic.c-monster in functional sub-units. HEADS UP: this code is untested and not considered stable.
2007-11-06Rename source files in an ot_ fashionDirk Engling1-0/+77