Commit Graph

673 Commits

Author SHA1 Message Date
Andy Pan 678f39767e Upgrade golangci-lint and format some code 2020-07-05 00:04:47 +08:00
Andy Pan 4d9057a8d0 Renew relevant articles 2020-05-31 19:37:55 +08:00
Andy Pan a195593eb7 Update READMEs 2020-05-28 17:50:51 +08:00
Andy Pan ad86bfa6d2 Improve the unlimited pool
Updates #90
2020-05-27 22:26:39 +08:00
Andy Pan 1d11f39375 Add activity diagrams 2020-05-24 13:10:23 +08:00
Andy Pan 5057293d76 Renew go version 2020-05-11 18:34:34 +08:00
Andy Pan 1c534853c8 Support unlimited pool
Fixes #90
2020-05-08 23:24:26 +08:00
wreulicke 88b5a85d64
Fix indent on README (#89) 2020-04-29 15:08:43 +08:00
Andy Pan f33679bb79 Exclude golangci-lint from Windows 2020-04-08 18:44:28 +08:00
Andy Pan 7135fcafc8 Update READMEs 2020-04-08 13:24:17 +08:00
Andy Pan d55cc24a22 Fix code issues 2020-04-08 13:16:14 +08:00
Andy Pan 77a3da4040 Leverage reviewdog as automated code review tool 2020-04-08 12:47:55 +08:00
Andy Pan e507ae340f Support customized logger 2020-03-13 00:02:19 +08:00
Andy Pan ef20703b02 Add go1.14 support on CI 2020-02-28 11:04:55 +08:00
l d8cb036198
Fix a bug that doesn't release lock (#79) 2020-02-26 11:15:02 +08:00
Andy Pan c3b448271b Switch the documentation link to go.dev 2020-02-20 22:11:09 +08:00
Andy Pan d7115c8000 Update info and fix typos 2020-01-25 14:53:32 +08:00
Andy Pan 67766a5661 Document Reboot() 2020-01-17 13:14:08 +08:00
Andy Pan d32d668565 Add a feature of rebooting a released pool 2020-01-16 23:45:15 +08:00
Andy Pan b7fb5f33c9 Remove the useless code line 2020-01-16 11:52:49 +08:00
Andy Pan d3e44612e2 Fix typos 2020-01-09 17:32:40 +08:00
Andy Pan ea787e5c0b Leverage tool testify to refine unit-test code 2020-01-08 11:07:12 +08:00
Andy Pan c7ddae76e4 Upgrade to go 1.13 on go.mod and add a new template of Github issues 2019-12-21 15:51:06 +08:00
Andy Pan 809379e657 Renew READMEs 2019-12-15 13:13:59 +08:00
Andy Pan 0be4487445 Update README_CN 2019-12-14 12:02:35 +08:00
Andy Pan 80b807db18 Renew badges 2019-12-03 00:04:31 +08:00
Andy Pan fd3841dd88 Fix #62 2019-11-23 11:19:48 +08:00
Andy Pan 709f67fb01 Update README to fix #60 2019-11-21 12:30:22 +08:00
Andy Pan 4683d6b6e6 Update READMEs 2019-11-16 19:32:34 +08:00
Andy Pan 1b1fee36aa Fix a failed test on Windows temporarily 2019-11-15 14:11:01 +08:00
Andy Pan 73c26bc792 Testing ants on multiple operating systems 2019-11-15 12:14:51 +08:00
Andy Pan 562ae1caf1
Update bug_report.md 2019-11-08 12:00:53 +08:00
Andy Pan e1937e6dfd Fix #57 cuz I take it wrong 2019-11-01 13:13:36 +08:00
Andy Pan 88fe6df3ab Add JetBrains logo for thanks of its support 2019-10-25 00:02:01 +08:00
Andy Pan 3bfc4f2ebd sync.Pool opt 2019-10-24 22:32:12 +08:00
Andy Pan 5a77e7a59d Update doc.go 2019-10-23 22:05:31 +08:00
Andy Pan b5a214b59f Add anchor-links in READMEs 2019-10-23 21:31:35 +08:00
Andy Pan 6b4a00c5cc Add more user cases of ants 2019-10-21 12:31:20 +08:00
Andy Pan 7aaa4349f5 Optimize loop queue of workers 2019-10-20 18:38:11 +08:00
Andy Pan 52b301019a Fix typos and add comments 2019-10-15 14:50:38 +08:00
Andy Pan 8138a23edd Update READMEs 2019-10-14 22:20:45 +08:00
Andy Pan 5e2245cb8d Enrich READMEs 2019-10-14 19:51:17 +08:00
Andy Pan 8cbfb5dd67 Optimize the logic when putting worker back to sync.Pool 2019-10-14 02:50:13 +08:00
Andy Pan 023672e877 Add doc.go 2019-10-14 00:21:49 +08:00
Andy Pan 4db04ca4a6 Renew the users' logos of ants 2019-10-11 22:34:32 +08:00
Andy Pan 5ecbdf4bf2 Make optimization to Pool and PoolWithFunc struct 2019-10-10 22:28:21 +08:00
Andy Pan 5697095a46 Put logo into a separate repo 2019-10-10 12:24:22 +08:00
Andy Pan 7724fc2c7b Increase code coverage 2019-10-10 03:20:10 +08:00
Andy Pan 566511ec5f Refactoring to the interface and implementations of worker-array 2019-10-10 03:02:04 +08:00
Kevin Bai f0e23928f4 add loop queue (#53)
* add loop queue

* add loop queue

* fix the bugs

add loop queue

move the worker queue to directory

按照新的接口实现 lifo 队列

添加新接口的环形队列实现

rename the slice queue

修复了 unlock

使用 queue 管理 goWorkerWithFunc

使用 dequeue 判断队列

add remainder

增加测试文件

循环队列需要一个空闲位

* remove interface{}

* Refine the logic of sync.Pool

* Add flowcharts of ants into READMEs

* Add the installation about ants v2

* Renew the functional options in READMEs

* Renew English and Chinese flowcharts

* rename package name

移动 worker queue 位置

worker queue 都修改为私有接口

考虑到性能问题,把 interface{} 改回到  *goworker

* 修改 releaseExpiry 和 releaseAll

* remove files

* fix some bug
2019-10-10 00:59:19 +08:00