Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
thread_attributes.h
Package: threads-2.0.tar.gz [view]
Upload User: shtangtang
Upload Date: 2007-01-04
Package Size: 167k
Code Size: 1k
Category:
Linux-Unix program
Development Platform:
Unix_Linux
- #ifndef __THREADS_ATTRIBUTES_H
- #define __THREADS_ATTRIBUTES_H
- extern "C" {
- # include <sched.h>
- };
- /**
- * Thread attributes. These can be used to change the policy
- * of a thread, and clones.
- */
- struct attributes {
- enum scope {
- process_shared,
- process_private
- };
- enum inheritance {
- attr_inherit,
- attr_explicit
- };
- enum state {
- attr_joinable,
- attr_detached
- };
- enum policy {
- other = SCHED_OTHER,
- fifo = SCHED_FIFO,
- rrobin = SCHED_RR
- };
- scope a_scope;
- inheritance a_inherit;
- state a_state;
- policy a_policy;
- struct sched_param a_param;
- attributes();
- };
- #endif /* THREADS ATTRIBUTES */