Commit Graph

36 Commits (master)

Author SHA1 Message Date
Nick Krichevsky baaf92a478 Add my own input for typescript 2019-09-26 20:36:53 -04:00
Nick Krichevsky 6d29d33dff Add more input validation 2019-09-26 20:26:32 -04:00
Nick Krichevsky e5f87c3387 Add sample output 2019-09-26 20:12:09 -04:00
Nick Krichevsky e7a120f029 Remove debugging start message 2019-09-26 20:06:46 -04:00
Nick Krichevsky 14705bb277 Fix memory leak when nb sends fail 2019-09-26 12:23:24 -04:00
Nick Krichevsky ff1c70f0dd Fix some minor leaks 2019-09-26 01:19:16 -04:00
Nick Krichevsky 69b534dad7 Clean up nonblocking path 2019-09-26 01:06:04 -04:00
Nick Krichevsky b9f8289ffd immediately teminate when nb messages finish for mailbox 2019-09-26 00:54:22 -04:00
Nick Krichevsky 518cfd2992 Add ability to terminate threads with no input immediately 2019-09-25 23:23:50 -04:00
Nick Krichevsky 6c33d90aaf Add ability to add something to the front of the queue 2019-09-25 23:22:01 -04:00
Nick Krichevsky cedaf7305f Refactor blocking input sends in preperation for fixing nonblocking inputs 2019-09-25 17:22:04 -04:00
Nick Krichevsky 98b0dfe85e Add queue-based nb implementation 2019-09-24 04:10:58 -04:00
Nick Krichevsky 7be5f64292 Add crude nb implementation 2019-09-24 03:18:25 -04:00
Nick Krichevsky 9e0b0bfaf3 Allow for queueing to the last mailbox 2019-09-24 03:05:30 -04:00
Nick Krichevsky 0403e2cd75 Join cancelled threads so we don't leak memory 2019-09-24 02:40:36 -04:00
Nick Krichevsky b5484f115f Fix memory leak with inputs 2019-09-23 16:39:22 -04:00
Nick Krichevsky 5fda00f1fd Add result collection 2019-09-23 16:38:52 -04:00
Nick Krichevsky 0d93481fea Add basic sending of input to threads 2019-09-23 15:36:27 -04:00
Nick Krichevsky 1b554408f9 Fix check for send_result in adder 2019-09-23 15:36:05 -04:00
Nick Krichevsky 4cc75e59cf Allocate the correct number of mailboxes for the number of threads 2019-09-23 15:09:41 -04:00
Nick Krichevsky 0b21e8be9a Add ability to spawn adder threads 2019-09-23 13:17:15 -04:00
Nick Krichevsky 2c83d753d9 Add basic (untested) adder thread implementation 2019-09-23 13:06:31 -04:00
Nick Krichevsky 3ff3a405c6 Free mailbox sems on free 2019-09-22 18:33:00 -04:00
Nick Krichevsky c5735552a2 Add basic RecvMsg routine 2019-09-22 15:05:12 -04:00
Nick Krichevsky 0b01c5f067 Add basic SendMsg routine 2019-09-22 14:56:59 -04:00
Nick Krichevsky a5af246855 Add mailbox setup and teardown 2019-09-22 14:48:05 -04:00
Nick Krichevsky 52bb13efd6 Add ceiling on num_threads 2019-09-22 14:42:51 -04:00
Nick Krichevsky b2617eaaae Add vgcore dumps to gitignore 2019-09-22 14:34:24 -04:00
Nick Krichevsky 93130356ec Add ability to setup/destroy mailboxes 2019-09-22 14:34:10 -04:00
Nick Krichevsky 369cafe0c1 Add argument parsing 2019-09-21 21:36:38 -04:00
Nick Krichevsky 8ec844245a Add basic input parsing 2019-09-21 21:30:24 -04:00
Nick Krichevsky 0ba6de5532 Add -pthread to LDFLAGS 2019-09-21 19:35:42 -04:00
Nick Krichevsky df7caa3f56 Add mailbox struct to mailbox.h 2019-09-21 19:31:21 -04:00
Nick Krichevsky b09bb99212 Add message structure 2019-09-21 18:59:00 -04:00
Nick Krichevsky 26977569e3 Add basic Makefile 2019-09-21 18:53:19 -04:00
Nick Krichevsky 2898ee85ad Add gitignore 2019-09-21 18:52:36 -04:00