Skip to content

Commit

Permalink
Use __threadid 0 for validation thread
Browse files Browse the repository at this point in the history
  • Loading branch information
lake4790k committed Jul 4, 2016
1 parent 5f1afc8 commit f427fba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions async/AsyncMaster.lua
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ function AsyncMaster:_init(opt)
self.controlPool:addjob(setupLogging(opt, 'VA'))
self.controlPool:addjob(torchSetup(opt))
self.controlPool:addjob(function()
-- distinguish from thread 1 in the agent pool
__threadid = 0
local signal = require 'posix.signal'
local ValidationAgent = require 'async/ValidationAgent'
validAgent = ValidationAgent(opt, theta, atomic)
Expand Down

0 comments on commit f427fba

Please sign in to comment.