https://bugzilla.wikimedia.org/show_bug.cgi?id=70177
--- Comment #7 from Ori Livneh <[email protected]> --- Two ideas: * In a multithreaded environment, it might be a lot saner to use the timerfd_*[1] family of system calls, which operate on timers that notify via file descriptors rather than signals. But this is a Linux-specific feature, so it would come at the cost of portability. * In an ideal world, LuaSandbox would use high-level timing and code profiling interfaces provided by HHVM, such as Timer::GetRusageMicros[2], cpuCyles[3], etc. [1]: http://man7.org/linux/man-pages/man2/timerfd_create.2.html [2]: https://github.com/facebook/hhvm/blob/master/hphp/util/timer.cpp#L108 [3]: https://github.com/facebook/hhvm/blob/master/hphp/util/cycles.h#L29 -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
