-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjob.win.go
More file actions
35 lines (27 loc) · 776 Bytes
/
job.win.go
File metadata and controls
35 lines (27 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// +build windows
package elio
// // Work work
// func (j *WriteJob) Work() error {
// var err error
// var out []byte
// var written int
// outs := j.session.outQueue.Fetch()
// for _, o := range outs {
// out = append(out, o.(*ByteBuffer).Bytes()...)
// PutByteBuffer(o.(*ByteBuffer))
// }
// l := len(out)
// for written < l {
// var w int
// w, err = j.session.service.io.Write(j.session, out[written:])
// if 0 < w {
// written += w
// } else {
// //AppError().Str(LogObject, j.String()).Str(LogSession, j.session.String()).
// AppError().Str(LogSession, j.session.String()).
// Err(err).Msgf("writing failed with fd:%v written:%d w:%d count.outqueue:%d", j.session.fd, written, w, l)
// break
// }
// }
// return err
// }