main.go 429 B

123456789101112131415161718192021222324252627282930
  1. package main
  2. import (
  3. "qfw/util"
  4. "sync"
  5. "time"
  6. )
  7. var wait sync.WaitGroup
  8. func main() {
  9. P_QL = NewPT()
  10. //wait.Add(1)
  11. go P_QL.updateAllQueue()
  12. //go P_QL.clearMem()
  13. if Sysconfig["loadStart"] != nil {
  14. loadStart := util.Int64All(Sysconfig["loadStart"])
  15. if loadStart > -1 {
  16. P_QL.loadData(loadStart)
  17. }
  18. }
  19. P_QL.currentType = "project"
  20. P_QL.pici = time.Now().Unix()
  21. P_QL.taskQl()
  22. c := make(chan bool, 1)
  23. <-c
  24. }