equal
deleted
inserted
replaced
271 return 0; |
271 return 0; |
272 } |
272 } |
273 |
273 |
274 #ifdef __solaris__ |
274 #ifdef __solaris__ |
275 int |
275 int |
276 dbgsysTlsAlloc() { |
276 dbgsysTlsAlloc(void) { |
277 thread_key_t tk; |
277 thread_key_t tk; |
278 if (thr_keycreate(&tk, NULL)) { |
278 if (thr_keycreate(&tk, NULL)) { |
279 perror("thr_keycreate"); |
279 perror("thr_keycreate"); |
280 exit(-1); |
280 exit(-1); |
281 } |
281 } |
326 } |
326 } |
327 |
327 |
328 #endif |
328 #endif |
329 |
329 |
330 long |
330 long |
331 dbgsysCurrentTimeMillis() { |
331 dbgsysCurrentTimeMillis(void) { |
332 struct timeval t; |
332 struct timeval t; |
333 gettimeofday(&t, 0); |
333 gettimeofday(&t, 0); |
334 return ((jlong)t.tv_sec) * 1000 + (jlong)(t.tv_usec/1000); |
334 return ((jlong)t.tv_sec) * 1000 + (jlong)(t.tv_usec/1000); |
335 } |
335 } |