- File:
-
- 1 edited
-
libcfa/src/concurrency/clib/cfathread.cfa (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/clib/cfathread.cfa
rd27b6be r86dc95d 58 58 this.themain = themain; 59 59 this.arg = arg; 60 ( (thread&)this){"C-thread", cl};60 (this.self){"C-thread", cl}; 61 61 __thrd_start(this, main); 62 62 } … … 102 102 this.init = init; 103 103 this.arg = arg; 104 ( (thread&)this){"Processir Init"};104 (this.self){"Processir Init"}; 105 105 106 106 // Don't use __thrd_start! just prep the context manually … … 312 312 313 313 ssize_t cfathread_write(int fildes, const void *buf, size_t nbyte) { 314 return cfa_write(fildes, buf, nbyte, CFA_IO_LAZY); 314 // Use send rather then write for socket since it's faster 315 return cfa_send(fildes, buf, nbyte, 0, CFA_IO_LAZY); 315 316 } 316 317 … … 335 336 336 337 ssize_t cfathread_read(int fildes, void *buf, size_t nbyte) { 337 return cfa_read(fildes, buf, nbyte, CFA_IO_LAZY); 338 } 339 340 } 338 // Use recv rather then read for socket since it's faster 339 return cfa_recv(fildes, buf, nbyte, 0, CFA_IO_LAZY); 340 } 341 342 }
Note:
See TracChangeset
for help on using the changeset viewer.