threadlist (647B)
1 #ifndef _THREADLIST_ 2 #define _THREADLIST_ 3 4 #include "sys/sys" 5 #include "ThreadsAndMutexes/threadinfo/threadinfo" 6 #include "SocketHandling/socket/socket" 7 8 typedef map<pthread_t, Threadinfo> Threadmap; 9 10 class Threadlist { 11 public: 12 static void enregister(); 13 static void deregister(pthread_t id); 14 static void deregister(); 15 static Threadmap &map(); 16 static Threadinfo info(pthread_t id); 17 static void desc(string const &s); 18 static void backend(int b); 19 static void clientfd(Socket &f); 20 static void backendfd(Socket &f); 21 static void clientip(struct in_addr adr); 22 23 private: 24 static Threadmap th_map; 25 }; 26 27 #endif