Blender Git Loki

Git Commits -> Revision aeda4dc

Revision aeda4dc by Sergey Sharybin (master)
June 20, 2015, 20:10 (GMT)
Threads: Cache result of syscall when querying number of system threads

Number of system threads is quite difficult to change without need of blender
restart, so we can cache result of the systcalls (which are not really cheap)
in order to be able to call BLI_system_thread_count() without worrying of
performance issues in that function.

Reviewers: campbellbarton

Differential Revision: https://developer.blender.org/D1342

Commit Details:

Full Hash: aeda4dca779da03c610c76b8cd0ea2cbdf744f38
Parent Commit: a95b0e0
Lines Changed: +24, -20

1 Modified Path:

/source/blender/blenlib/intern/threads.c (+24, -20) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021