Changeset 53aeed588114b6e346057869dab719cefe3000c9
- Timestamp:
- 11/24/09 20:50:23
(4 years ago)
- Author:
- Theo Schlossnagle <jesus@omniti.com>
- git-committer:
- Theo Schlossnagle <jesus@omniti.com> 1259095823 +0000
- git-parent:
[abe7edbdd20777ec3d02b2f26963cdffdbff79e3]
- git-author:
- Theo Schlossnagle <jesus@omniti.com> 1259095823 +0000
- Message:
create the jlog streamer threads detached
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r5bb306c |
r53aeed5 |
|
| 205 | 205 | eventer_t newe; |
|---|
| 206 | 206 | pthread_t tid; |
|---|
| | 207 | pthread_attr_t tattr; |
|---|
| 207 | 208 | int newmask = EVENTER_READ | EVENTER_EXCEPTION; |
|---|
| 208 | 209 | acceptor_closure_t *ac = closure; |
|---|
| … | … | |
| 305 | 306 | newe = eventer_alloc(); |
|---|
| 306 | 307 | memcpy(newe, e, sizeof(*e)); |
|---|
| 307 | | if(pthread_create(&tid, NULL, noit_jlog_thread_main, newe) == 0) { |
|---|
| | 308 | pthread_attr_init(&tattr); |
|---|
| | 309 | pthread_attr_setdetachstate(&tattr, PTHREAD_CREATE_DETACHED); |
|---|
| | 310 | if(pthread_create(&tid, &tattr, noit_jlog_thread_main, newe) == 0) { |
|---|
| 308 | 311 | return 0; |
|---|
| 309 | 312 | } |
|---|