Check-in [bdabc41e51]
Overview
Comment:Generate readable events even after EOF, since it will not block
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: bdabc41e5120da88774ccdaa8483e8d9f23aa519f9f3776525c19e2795602894
User & Date: rkeene on 2019-09-18 00:13:56
Other Links: manifest | tags
Context
2019-09-18
00:14
More benchmarks check-in: 200a60c198 user: rkeene tags: trunk
00:13
Generate readable events even after EOF, since it will not block check-in: bdabc41e51 user: rkeene tags: trunk
2019-09-17
23:43
When compiling the benchmarks, optimize check-in: 7225016a7e user: rkeene tags: trunk
Changes

Modified xvfs-core.c from [380fb5f221] to [3a8b5cbf11].

389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
389
390
391
392
393
394
395








396
397
398
399
400
401
402







-
-
-
-
-
-
-
-








	if ((mask & TCL_READABLE) != TCL_READABLE) {
		return;
	}

	channelInstanceData = (struct xvfs_tclfs_channel_id *) channelInstanceData_p;

	/*
	 * If the read call has marked that we have reached EOF,
	 * do not signal any further
	 */
	if (channelInstanceData->eofMarked) {
		return;
	}

	event = (struct xvfs_tclfs_channel_event *) Tcl_Alloc(sizeof(*event));
	event->tcl.proc = xvfs_tclfs_watchChannelEvent;
	event->tcl.nextPtr = NULL;
	event->channelInstanceData = channelInstanceData;

	channelInstanceData->queuedEvents++;