Commit Graph

609 Commits

Author SHA1 Message Date
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
Andy Pan 0efbda3f68 Update READMEs 2019-10-09 19:42:32 +08:00
Andy Pan 66350c88db Renew English and Chinese flowcharts 2019-10-08 20:49:47 +08:00
Andy Pan 617c89699a Renew the functional options in READMEs 2019-10-07 20:53:23 +08:00
Andy Pan 5f1a32384f Add the installation about ants v2 2019-10-07 19:50:09 +08:00
Andy Pan 49150bfa5e Add flowcharts of ants into READMEs 2019-10-07 19:31:03 +08:00
Andy Pan b1cf2ff445 Refine the logic of sync.Pool 2019-10-06 02:02:40 +08:00
Andy Pan 0a946593e2 Fix a issue in testing nonblocking pool 2019-10-04 11:36:11 +08:00
Andy Pan b0ec5102cc Refactoring 2019-10-04 11:24:13 +08:00
Andy Pan 2b9f35b18f Update README with awesome 2019-09-30 14:47:27 +08:00
Andy Pan e73db1d7d2 Replace mutex with spin-lock 2019-09-27 20:51:46 +08:00
Andy Pan 09973e8b1b Update READMEs 2019-09-24 13:35:42 +08:00
Cholerae Hu d6cd5a7e72 worker: decRunning when revertWorker is false
Signed-off-by: Cholerae Hu <choleraehyq@gmail.com>
2019-09-12 09:00:31 +08:00
Andy Pan 280ac345a8 Improve grammar in README and add go1.13 to CI 2019-09-05 20:31:52 +08:00
Andy Pan 89644d035c Remove some useless code 2019-09-03 09:29:26 +08:00