Skip to content

Commit ca55684

Browse files
committed
removed getThreadAffinity function from thread.cpp, it was causing GLIBC2.6 dependency
1 parent c10f373 commit ca55684

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

Diff for: common/sys/thread.cpp

-14
Original file line numberDiff line numberDiff line change
@@ -184,20 +184,6 @@ namespace embree
184184
if (pthread_setaffinity_np(pthread_self(), sizeof(cset), &cset) != 0)
185185
std::cerr << "Thread: cannot set affinity" << std::endl;
186186
}
187-
188-
ssize_t getThreadAffinity(pthread_t pth)
189-
{
190-
cpu_set_t cset;
191-
CPU_ZERO(&cset);
192-
int error = pthread_getaffinity_np(pth, sizeof(cset), &cset);
193-
if (error != 0) perror("pthread_getaffinity_np");
194-
195-
for (int j=0; j<CPU_COUNT(&cset); j++)
196-
if (CPU_ISSET(j, &cset))
197-
return j;
198-
199-
return -1;
200-
}
201187
}
202188
#endif
203189

0 commit comments

Comments
 (0)