mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-27 15:14:13 +01:00
ba526ceffe
* move shutdownfns, terminatefns and hammerfns out of separate goroutines Coalesce the shutdownfns etc into a list of functions that get run at shutdown rather then have them run at goroutines blocked on selects. This may help reduce the background select/poll load in certain configurations. * The LevelDB queues can actually wait on empty instead of polling Slight refactor to cause leveldb queues to wait on empty instead of polling. * Shutdown the shadow level queue once it is empty * Remove bytefifo additional goroutine for readToChan as it can just be run in run * Remove additional removeWorkers goroutine for workers * Simplify the AtShutdown and AtTerminate functions and add Channel Flusher * Add shutdown flusher to CUQ * move persistable channel shutdown stuff to Shutdown Fn * Ensure that UPCQ has the correct config * handle shutdown during the flushing * reduce risk of race between zeroBoost and addWorkers * prevent double shutdown Signed-off-by: Andrew Thornton <art27@cantab.net> |
||
---|---|---|
.. | ||
bytefifo.go | ||
helper.go | ||
manager.go | ||
queue_bytefifo.go | ||
queue_channel_test.go | ||
queue_channel.go | ||
queue_disk_channel_test.go | ||
queue_disk_channel.go | ||
queue_disk_test.go | ||
queue_disk.go | ||
queue_redis.go | ||
queue_test.go | ||
queue_wrapped.go | ||
queue.go | ||
setting.go | ||
unique_queue_channel.go | ||
unique_queue_disk_channel.go | ||
unique_queue_disk.go | ||
unique_queue_redis.go | ||
unique_queue_wrapped.go | ||
unique_queue.go | ||
workerpool.go |