Commit Graph

8 Commits

Author SHA1 Message Date
Brian Picciano
553a4854ea mrun: change WithThread to WithThreads 2019-02-24 17:38:05 -05:00
Brian Picciano
e1e52db208 refactor everything to use context's annotation system, making some significant changes to annotations themselves along the way 2019-02-24 15:36:07 -05:00
Brian Picciano
4b446a0efc mctx: refactor so that contexts no longer carry mutable data
This change required refactoring nearly every package in this project,
but it does a lot to simplify mctx and make other code using it easier
to think about.

Other code, such as mlog and mcfg, had to be slightly modified for this
change to work as well.
2019-02-07 19:42:12 -05:00
Brian Picciano
5f864c44f2 mrun: make Thread's callback not take in a context, it doesn't really help anything 2019-01-24 19:18:44 -05:00
Brian Picciano
448008cb7c mrun: move Hook code into hook.go 2019-01-12 20:14:02 -05:00
Brian Picciano
ee77656f39 mrun: rename functions and add another trigger function which will run hooks in reverse, for use in OnStop 2019-01-12 19:55:41 -05:00
Brian Picciano
48bb21668a mrun: implement rudimentary event system built on top of mctx 2019-01-10 18:06:34 -05:00
Brian Picciano
57bd022093 mrun: implement Thread and Wait 2018-12-05 23:40:46 -05:00