⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 threads.spec

📁 用c++包装好的线程库,直接拿来使用,提高效率.
💻 SPEC
字号:
%define	prefix      /usr/local# This spec file was generated using Kpp# If you find any problems with this spec file please report# the error to ian geiser <geiseri@msoe.edu>Summary:     Library for mutliple threads in C++Name:        threadsAutoreqprov: onVersion:     3.6Release:     1Copyright:   GPLVendor:      豶n E. HansenUrl:         http://threads.sourceforge.netPackager:    豶n E. HansenGroup:       Development/LibrariesSource:      http://prdownloads.sourceforge.net/threads/threads-%{version}.tar.gzBuildRoot:   /tmp/buildroot/Provides:    threads%descriptionThreads is a library that wrappes around the clone system call, to give threadsinside a C++ program.  It does so by providing a C++ class, called pthread forconvention.  As well as mutex for mutual exclusion of parallel processes,condition variables and semaphores.  It also follows SGI's STL suggestionsand provides thread safety to allocator classes... as well as processscoping for synchronisation classes mutex/cond/semaphore.%package -n threads-devSummary:     Development libraries and include headers for threadsGroup:       Development/LibrariesRequires:    threadsProvides:    threads-devAutoreqprov: on%description -n threads-devThese are the include headers for the thread package, the staticlibrary and a link to the dynamic libraries that makes this versionthe default version linked against when compiling..To make any thread development, with the threads library, you need this package installed.%package -n threads-examplesSummary:     Example sources and programs.Group:       Development/C++Requires:    threadsProvides:    threads-examplesAutoreqprov: on%description -n threads-examplesThese are some examples of threaded C++ applications.  By implementing several threads, they demonstrate the use of mutex, condition variables to synchronise them as well as use of semaphores.  Threaded handling of data input/output via the pthread_io class, to implement a small server and client, and other thread realted classes..Here you will find solutions to common problems concerning synchronisationof threads, as well as processes that use the process scoping method.%prep%setup./configure --prefix=%{prefix} --enable-shared --with-install-root=$RPM_BUILD_ROOTmake%installmake DESTDIR=$RPM_BUILD_ROOT installrm examples/*.orm examples/Makefile.inrm examples/Makefile.ambzip2 ${RPM_BUILD_ROOT}%{prefix}/man/man3/*bzip2 ${RPM_BUILD_ROOT}%{prefix}/man/man7/*mv ${RPM_BUILD_ROOT}%{prefix}/include/threads/thread.h ${RPM_BUILD_ROOT}%{prefix}/include%cleanrm -rf $RPM_BUILD_ROOT%files%doc COPYING INSTALL README TODO NEWS%{prefix}/lib/libthreads.so.3*%files -n threads-examples%{prefix}/lib/threads/*%files -n threads-dev%doc doc/html%{prefix}/include/thread.h%{prefix}/include/threads/*.h%{prefix}/lib/libthreads.a%{prefix}/lib/libthreads.so%{prefix}/man/man7/threads.7*%{prefix}/man/man3/pthread.3*%{prefix}/man/man3/mutex.3*%{prefix}/man/man3/cond.3*%{prefix}/man/man3/semaphore.3*

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -