2
0
mirror of synced 2025-02-20 13:38:20 +00:00

gl: fix comment, simplify queue capacity

Change-Id: I24f4cc3267c8db117a2c9551c5236fa2453da9f3
Reviewed-on: https://go-review.googlesource.com/15393
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
This commit is contained in:
David Crawshaw 2015-10-05 13:05:35 -04:00
parent ca60936f19
commit 48637192de

View File

@ -99,7 +99,7 @@ func (ctx *context) enqueue(c call) C.uintptr_t {
}
func (ctx *context) DoWork() {
queue := make([]call, 0, len(ctx.work)) // len(ctx.work) == workbufLen
queue := make([]call, 0, workbufLen)
for {
// Wait until at least one piece of work is ready.
// Accumulate work until a piece is marked as blocking.