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:
parent
ca60936f19
commit
48637192de
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user