Changeset 1379
- Timestamp:
- 07/30/09 21:55:18 (4 years ago)
- Location:
- tags/pdns-3.1.7.1/pdns
- Files:
-
- 1 added
- 2 modified
-
misc.hh (modified) (2 diffs)
-
mtasker.cc (modified) (1 diff)
-
rdtsc.hh (added)
Legend:
- Unmodified
- Added
- Removed
-
tags/pdns-3.1.7.1/pdns/misc.hh
r1094 r1379 23 23 24 24 #if 0 25 #define RDTSC(qp) \26 do { \27 unsigned long lowPart, highPart; \28 __asm__ __volatile__("cpuid"); \29 __asm__ __volatile__("rdtsc" : "=a" (lowPart), "=d" (highPart)); \30 qp = (((unsigned long long) highPart) << 32) | lowPart; \31 } while (0)32 33 25 #include <iostream> 34 26 using std::cout; … … 389 381 } 390 382 383 inline void setSocketReusable(int fd) 384 { 385 int tmp=1; 386 setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, (char*)&tmp, static_cast<unsigned>(sizeof tmp)); 387 } 388 391 389 string stripDot(const string& dom); 392 390 -
tags/pdns-3.1.7.1/pdns/mtasker.cc
r1116 r1379 302 302 if(i->ttd && (unsigned int)i->ttd < now) { 303 303 d_waitstatus=TimeOut; 304 d_eventkey=i->key; // pass waitEvent the exact key it was woken for 304 305 ucontext_t* uc = i->context; 305 306 ttdindex.erase(i++); // removes the waitpoint