Commit Graph

40 Commits

Author SHA1 Message Date
Andy Pan 4927155de3 fixed issue #6 2018-08-03 21:15:11 +08:00
Andy Pan 1444008b67 rename methods 2018-08-03 19:28:46 +08:00
andy pan 39951bd2f5 format codes 2018-07-31 11:05:48 +08:00
andy pan 59ad1fa56c optimization for structure 2018-07-31 11:05:05 +08:00
andy pan 042109890a make some methods unexported 2018-07-31 11:03:41 +08:00
barryz 83042d7095 pre-allocate the capacity of the worker list 2018-07-25 22:28:11 +08:00
Andy Pan 634682856f Merge branch 'develop' 2018-07-24 22:30:37 +08:00
Andy Pan a326530368 rename the monitorAndClear function 2018-07-21 18:50:18 +08:00
Andy Pan 4553a7a1c6 update codecov test 2018-07-16 02:43:38 +08:00
Andy Pan d31b2413c6 update 2018-07-16 02:33:43 +08:00
Andy Pan eaf79d239f fixed some issues 2018-07-16 01:21:23 +08:00
Andy Pan 9b4f9c7b48 update codecov test 2018-07-15 22:45:55 +08:00
Andy Pan 74e49c9f28 fixed race issue 2018-07-15 21:16:27 +08:00
Andy Pan 4d0682d342 fixed race issue 2018-07-15 21:09:59 +08:00
Andy Pan d77f01cf9a optimization for GC 2018-07-15 00:57:32 +08:00
Andy Pan 813cc218fe simplify and optimize goroutine-worker 2018-07-15 00:52:27 +08:00
Andy Pan c4a50a1867 optimization for pool 2018-07-13 00:11:42 +08:00
Andy Pan 5aa4fd3b9d update 2018-07-08 10:38:40 +08:00
Andy Pan 2e7d823141 optimization for timed task to clear idle workers 2018-07-08 10:29:12 +08:00
Andy Pan b1e4d22aea optimization for codes 2018-07-06 20:51:16 +08:00
Andy Pan 9c4ec3fe31 optimization 2018-07-06 20:44:10 +08:00
Andy Pan 6da1112dff gofmt 2018-07-06 20:24:47 +08:00
Andy Pan 339aaa4475 update 2018-07-06 20:20:18 +08:00
andy pan afba560448 format codes 2018-07-06 15:00:30 +08:00
andy pan b21f63142d fixed the "slice bounds out of range" error 2018-07-06 14:56:59 +08:00
andy pan 5ae6239a57 start a goroutine to clear expired workers when init a pool 2018-07-06 14:42:26 +08:00
andy pan 337c644550 add expired time for PoolWithFunc 2018-07-06 14:39:24 +08:00
andy pan e64217c364 optimization for releasing pool 2018-06-22 11:42:05 +08:00
andy pan 8c76e9fa87 Merge branch 'develop' 2018-06-15 11:28:21 +08:00
andy pan affcb8eaf7 Merge branch 'develop' 2018-05-30 12:59:00 +08:00
andy pan d56ebb1a29 finish the ReSize() and Release() methods 2018-05-30 12:57:20 +08:00
Andy Pan 5326374a22 Auto stash before merge of "develop" and "origin/develop" 2018-05-24 23:43:34 +08:00
andy pan ab6390f6d0 optimization 2018-05-24 19:27:54 +08:00
andy pan ff4b7d8a22 update 2018-05-24 18:30:58 +08:00
andy pan 2e3a9a650e update go test 2018-05-23 17:21:39 +08:00
Andy Pan 0453f88168 update 2018-05-23 00:46:43 +08:00
andy pan d606fb79f6 benchmarks updated 2018-05-22 18:00:15 +08:00
andy pan b2ab15fa96 update 2018-05-22 16:20:01 +08:00
Andy Pan 967b0b04e2 optimization 2018-05-22 12:01:00 +08:00
Andy Pan fad443d7d8 add a new type of pool, allowing to create a pool with a function 2018-05-22 11:26:16 +08:00