Commit Graph

276 Commits (63fb5e3187c11bf463f5b3666dabfed337ee1c67)
 

Author SHA1 Message Date
noah metz e5ba988f01 Allow locking of already owned resources, considered nop and continues 2023-07-11 16:17:21 -06:00
noah metz 88d8113b5c Added AllowedToTakeLock to SimpleThread that allows children to inherit locks 2023-07-11 16:13:57 -06:00
noah metz 7a95af6db2 Added nil check to deserializeinfo 2023-07-11 00:23:07 -06:00
noah metz c30b9d082a Added AGPLv3 LICENSE 2023-07-10 22:39:37 -06:00
noah metz 743569e088 Added more doc comments 2023-07-10 22:31:43 -06:00
noah metz fb7fb5938d Changed NodeDef to use example instead of manually passing string and type 2023-07-10 21:24:47 -06:00
noah metz e12d02eb3f Cleaned up GQL context 2023-07-10 21:15:01 -06:00
noah metz a9431ecf73 Added db write log 2023-07-10 19:04:15 -06:00
noah metz 14b084b081 Fixed always initializing timeout on thread load. TODO: look at why loading it on thread load was causing the aborted event to not be sent 2023-07-10 01:07:56 -06:00
noah metz 6a0a0762ad Finished rework of context 2023-07-09 20:30:19 -06:00
noah metz 7aedf553ee Updated gql.go 2023-07-09 19:33:18 -06:00
noah metz 269e7a57e2 Added correct Type for simple_thread 2023-07-09 16:03:42 -06:00
noah metz b846bbb812 Updated thread.go and thread_test.go 2023-07-09 15:59:41 -06:00
noah metz 5c416a4a3f We do a little refactoring, hehe 2023-07-09 14:30:30 -06:00
noah metz a9d1fe5793 moved to ThreadLoop from separate StartThread and RestoreThread functions 2023-07-06 16:57:51 -06:00
noah metz 0e2b6ccb2a enhance tests for race conditions 2023-07-05 23:54:11 -06:00
noah metz ff46af585d Added fixes to pass go vet 2023-07-05 14:50:21 -06:00
noah metz a7f721e0cd Allow loading of nil thread_info 2023-07-04 19:46:14 -06:00
noah metz c42ca80d47 Modified SendUpdate to require it to be called from inside a UseStates context. 2023-07-04 18:45:23 -06:00
noah metz ce831af290 last fix 2023-07-03 19:46:01 -06:00
noah metz a23dfd2b81 test 2023-07-03 19:38:55 -06:00
noah metz dd6b0de414 fix 2023-07-03 19:37:04 -06:00
noah metz e5c4069cfc fix 2023-07-03 19:22:32 -06:00
noah metz 81945ab191 test 2023-07-03 19:19:23 -06:00
noah metz 543aec054e Logging 2023-07-03 19:16:17 -06:00
noah metz f44752d988 GQLWS Logging 2023-07-03 19:13:29 -06:00
noah metz fd72ad3901 Fixed gql subscription typo 2023-07-03 19:04:51 -06:00
noah metz 9485ef9772 Added self subscription 2023-07-03 18:58:15 -06:00
noah metz 53b93d5e70 Removed child_state from FindChild 2023-07-03 18:08:32 -06:00
noah metz 4b64fb1ef2 Removed state argument from LockLockable and UnlockLockable 2023-07-03 17:13:00 -06:00
noah metz 5bdc06bf0f Added UnlinkLockables and UnlinkThreads 2023-07-03 16:37:54 -06:00
noah metz 64171c6c85 Added UnlinkLockables and UnlinkThreads 2023-07-03 16:03:56 -06:00
noah metz 34f8a9f009 Fixed typo in thread loading that resulted in the parent being loaded as an owner instead 2023-07-03 13:14:48 -06:00
noah metz a05d847863 test 2023-07-02 12:54:29 -06:00
noah metz 8a5de1b0de fix 2023-07-02 12:51:22 -06:00
noah metz 300e735065 Added restore actions, and gql should run them 2023-07-02 12:47:45 -06:00
noah metz 8d041fa896 Added SetTimeout back to Thread 2023-07-02 12:23:35 -06:00
noah metz 6355cc4226 Moved timeout info to thread state, and fixed restore to add handlers and actions 2023-07-02 12:17:53 -06:00
noah metz c9d9b9ac03 Update a bunch of stuff 2023-07-02 12:14:04 -06:00
noah metz 9b61adc375 Added check to allow restored threads to be run in RunThread 2023-07-02 11:26:58 -06:00
noah metz 06a6b0f09a Name json fields for gql thread info 2023-07-02 10:49:42 -06:00
noah metz 1585034777 Fixed gql threadstate 2023-07-02 10:46:53 -06:00
noah metz ce0634cd61 Only lock thread during RunThread if it's not already owned by the thread 2023-07-02 10:39:15 -06:00
noah metz 3ebb6fe223 Added fail to LockLockables if owner is trying to lock again 2023-07-02 10:34:25 -06:00
noah metz fa22d8f2a9 Log change 2023-07-02 10:09:46 -06:00
noah metz 1c6983ff4a Exposed load function maps in graph context constructor 2023-07-02 09:34:36 -06:00
noah metz 638148afab Updated FindChild to use UseMoreStates and expect to get passed currently held states 2023-07-02 09:05:34 -06:00
noah metz 97c1405e3c Fixed paramter order of GQLContext init 2023-07-01 13:47:12 -06:00
noah metz b7a7d509e6 Exposed gql context initialization 2023-07-01 13:41:38 -06:00
noah metz c2d09a07e3 Fixed type resolution that was missed 2023-07-01 13:11:46 -06:00