Титульная страница | Пространства имен | Алфавитный указатель | Классы | Файлы | Члены пространства имен | Члены классов | Описания | Примеры

threads_1/impl/h/thread_info.hpp

См. документацию.
00001 /* 00002 00003 threads_1: Multithreading support library 00004 Yauheni A. Akhotnikau (C) 2002-2003 00005 eao197@yahoo.com 00006 ------------------------------------------------- 00007 00008 Permission is granted to anyone to use this software for any purpose on any 00009 computer system, and to redistribute it freely, subject to the following 00010 restrictions: 00011 00012 1. This software is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00015 00016 2. The origin of this software must not be misrepresented, either by 00017 explicit claim or by omission. 00018 00019 3. Altered versions must be plainly marked as such, and must not be 00020 misrepresented as being the original software. 00021 00022 ------------------------------------------------- 00023 00024 */ 00025 /* 00026 Threads 1 00027 */ 00028 00035 #ifndef _THREADS_1__IMPL__THREAD_INFO_HPP_ 00036 #define _THREADS_1__IMPL__THREAD_INFO_HPP_ 00037 00038 #include <threads_1/h/threads.hpp> 00039 00040 namespace threads_1 00041 { 00042 00043 namespace impl 00044 { 00045 00046 // 00047 // thread_info_t 00048 // 00049 00054 struct thread_info_t 00055 { 00057 pfn_thread_proc_t m_proc; 00060 mutex_sem_t m_sem; 00061 00063 cond_var_t m_started; 00066 cond_var_t m_may_be_destroyed; 00067 00069 void * m_params; 00070 00071 thread_info_t( pfn_thread_proc_t proc, 00072 void * p_params ) 00073 : 00074 m_proc( proc ), 00075 m_params( p_params ), 00076 m_started( m_sem ), 00077 m_may_be_destroyed( m_sem ) 00078 { 00079 } 00080 }; 00081 00082 } /* namespace impl */ 00083 00084 typedef void (*pfn_internal_thread_proc_t)( 00085 impl::thread_info_t * ); 00086 00087 00089 void 00090 _os_begin_thread( 00091 pfn_internal_thread_proc_t proc, 00092 impl::thread_info_t * thread_info ); 00093 00094 } /* namespace threads_1 */ 00095 00096 #endif

Документация по threads_1. Последние изменения: Wed Aug 4 06:46:01 2004. Создано системой doxygen 1.3.7
Hosted by uCoz