machine.go 484 B

1234567891011121314151617181920212223
  1. // Copyright (C) 2016 Kohei YOSHIDA. All rights reserved.
  2. //
  3. // This program is free software; you can redistribute it and/or
  4. // modify it under the terms of The BSD 3-Clause License
  5. // that can be found in the LICENSE file.
  6. package uritemplate
  7. // threadList implements https://research.swtch.com/sparse.
  8. type threadList struct {
  9. dense []threadEntry
  10. sparse []uint32
  11. }
  12. type threadEntry struct {
  13. pc uint32
  14. t *thread
  15. }
  16. type thread struct {
  17. op *progOp
  18. cap map[string][]int
  19. }