Skip to content

Commit

Permalink
gl: fix comment, simplify queue capacity
Browse files Browse the repository at this point in the history
Change-Id: I24f4cc3267c8db117a2c9551c5236fa2453da9f3
Reviewed-on: https://go-review.googlesource.com/15393
Reviewed-by: Hyang-Ah Hana Kim <[email protected]>
  • Loading branch information
crawshaw committed Oct 5, 2015
1 parent ca60936 commit 4863719
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gl/work.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 4863719

Please sign in to comment.