5 Commits

Author SHA1 Message Date
John Norrbin
1e848d2e4e
Handle malloc returning null
Locks are required for multi-threading. If memory can't be allocated, exit the program with memory error. If we let the program continue, it will deadlock in the next part of the code anyway so better end it before.
2019-01-04 19:24:59 +01:00
Brent Cook
565258a447 use InterlockedExchangeAdd for add 2019-01-01 15:44:37 -06:00
Brent Cook
e508171956 make locks self-initialize, switch to critical sections 2019-01-01 15:44:37 -06:00
Brent Cook
ff7a18318c include header 2018-11-11 10:59:15 -06:00
Brent Cook
1e2937e1a2 added crypto_lock portable bits 2018-11-11 09:14:00 -06:00