swr: [rasterizer] added EventHandlerFile contructor
Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
This commit is contained in:
committed by
Tim Rowley
parent
0a5811b0f3
commit
55fb874376
@@ -60,7 +60,12 @@ namespace ArchRast
|
||||
sprintf(buf, "%s\\ar_event%d_%d.bin", outDir.str().c_str(), GetCurrentThreadId(), id);
|
||||
mFilename = std::string(buf);
|
||||
#else
|
||||
SWR_ASSERT(0);
|
||||
char buf[255];
|
||||
// There could be multiple threads creating thread pools. We
|
||||
// want to make sure they are uniquly identified by adding in
|
||||
// the creator's thread id into the filename.
|
||||
sprintf(buf, "%s/ar_event%d_%d.bin", "/tmp", GetCurrentThreadId(), id);
|
||||
mFilename = std::string(buf);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user