/usr/include/stxxl/bits/io
NameSizeModeActions
boostfd_file.h21210644editdlrm
completion_handler.h28340644editdlrm
create_file.h13310644editdlrm
disk_queued_file.h17460644editdlrm
disk_queues.h39620644editdlrm
file.h76760644editdlrm
fileperblock_file.h25380644editdlrm
io.h12710644editdlrm
iostats.h162380644editdlrm
linuxaio_file.h25740644editdlrm
linuxaio_queue.h31090644editdlrm
linuxaio_request.h20990644editdlrm
mem_file.h17440644editdlrm
mmap_file.h18700644editdlrm
request.h31450644editdlrm
request_interface.h26820644editdlrm
request_operations.h51880644editdlrm
request_queue.h12450644editdlrm
request_queue_impl_1q.h21030644editdlrm
request_queue_impl_qwqr.h22740644editdlrm
request_queue_impl_worker.h20290644editdlrm
request_with_state.h16990644editdlrm
request_with_waiters.h15760644editdlrm
serving_request.h13870644editdlrm
simdisk_file.h42830644editdlrm
syscall_file.h18440644editdlrm
ufs_file_base.h18650644editdlrm
wbtl_file.h34150644editdlrm
wfs_file_base.h16630644editdlrm
wincall_file.h20450644editdlrm
Edit: /usr/include/stxxl/bits/io/request_queue_impl_worker.h (2029B)
/*************************************************************************** * include/stxxl/bits/io/request_queue_impl_worker.h * * Part of the STXXL. See http://stxxl.sourceforge.net * * Copyright (C) 2002 Roman Dementiev * Copyright (C) 2008, 2009 Andreas Beckmann * Copyright (C) 2009 Johannes Singler * Copyright (C) 2013 Timo Bingmann * * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * http://www.boost.org/LICENSE_1_0.txt) **************************************************************************/ #ifndef STXXL_IO_REQUEST_QUEUE_IMPL_WORKER_HEADER #define STXXL_IO_REQUEST_QUEUE_IMPL_WORKER_HEADER #include #if STXXL_STD_THREADS #include #elif STXXL_BOOST_THREADS #include #elif STXXL_POSIX_THREADS #include #else #error "Thread implementation not detected." #endif #include #include #include STXXL_BEGIN_NAMESPACE //! \addtogroup reqlayer //! \{ //! Implementation of request queue worker threads. Worker threads can be //! started by start_thread and stopped with stop_thread. The queue state is //! checked before termination and updated afterwards. class request_queue_impl_worker : public request_queue { protected: enum thread_state { NOT_RUNNING, RUNNING, TERMINATING, TERMINATED }; #if STXXL_STD_THREADS typedef std::thread* thread_type; #elif STXXL_BOOST_THREADS typedef boost::thread* thread_type; #else typedef pthread_t thread_type; #endif protected: void start_thread(void* (* worker)(void*), void* arg, thread_type& t, state& s); void stop_thread(thread_type& t, state& s, semaphore& sem); }; //! \} STXXL_END_NAMESPACE #endif // !STXXL_IO_REQUEST_QUEUE_IMPL_WORKER_HEADER // vim: et:ts=4:sw=4