Skip to content

Commit 4a293e1

Browse files
remove outdated comment.
1 parent 7c505b8 commit 4a293e1

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/threadpool.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -283,15 +283,6 @@ API_FUNC hw_pool_init_status hw_pool_init(uint32_t num_threads) {
283283
while (i < num_threads) {
284284
pooled_thread_control *thread_control =
285285
(pooled_thread_control *)(buffer + alignment * (size_t)i);
286-
// Initialize the thread control struct in two 128b atomic writes.
287-
// TODO: It's possible to just do this in a single 256b atomic write on most
288-
// x86 platforms. That may also require increasing the alignment constraints
289-
// for the control_slice.
290-
// TODO: also ifdef in an implementation for platforms that can't do
291-
// lock-free 128b writes or that don't handle mixed-size atomic writes.
292-
// TODO: making some kind of ifunc to handle this initialization is probably
293-
// actually the right way to do it because it's hard to know enough about
294-
// the CPU at compile-time.
295286
init_thread_control(thread_control, i, &hw_pool);
296287
int status;
297288
#ifdef QPOOL_USE_PTHREADS

0 commit comments

Comments
 (0)