path: root/lib/thread
AgeCommit message (Collapse)Author
2016-12-29Clean up thread spawning code on linux.Ori Bernstein
2016-11-20Add ncpu for 9front.Ori Bernstein
2016-11-20Allow requesting CPU counts on FreeBSDOri Bernstein
2016-11-20Fix cut-paste error.Ori Bernstein
I was supposed to copy, not cut.
2016-08-27Rename `std.Fail to `std.Err.Ori Bernstein
2016-05-27Add missing file.Ori Bernstein
2016-05-17New syntax for casts.Ori Bernstein
2016-05-14Regenerate builds for OpenBSD.Ori Bernstein
And patch up libstd to matcht .
2016-05-12Exercise some of the allocation/put locking.Ori Bernstein
2016-05-12Install thread hooks in libstdOri Bernstein
Looks like the file wasn't properly added.
2016-05-09Add support for OpenBSD thread spawning.Ori Bernstein
2016-05-08We now can build and install on openbsd.Ori Bernstein
2016-05-06Yield in sched()Ori Bernstein
2016-05-06Update libthread on 9front.Ori Bernstein
2016-05-05Looks like condvar is busted everywhere.Ori Bernstein
2016-05-05Disable condvar.Ori Bernstein
It seems busted.
2016-05-05Integrate libthread into the build.Ori Bernstein
2016-05-06Remove unbaked APIs, fix syntax a bit.Ori Bernstein
2016-05-05I give up.Ori Bernstein
OSX gets a spinlock for now.
2016-05-02Get OSX spawn to almost work.Ori Bernstein
We don't free the stack yet.
2016-01-18Add a broken spawn+osx.myrOri Bernstein
It works under dtruss...
2016-01-18Add OSX style symbols to atomic-impl+x64.sOri Bernstein
OSX wants '_'-prefixed functions.
2016-01-06remove the sub operationsOri Bernstein
useless, and not implemented by the cpu.
2016-01-06Fix or remove the other broken operationsOri Bernstein
2016-01-06Fix mutexes.Ori Bernstein
Turns out atomic increments weren't returning the old value. Oops.
2016-01-05Add thread spawning, and a broken attempt at mutexes.Ori Bernstein
Also removes a reference to stack data in the tests, and works around a crash in mbld test on plan9, where the printing was confusing things. TODO: fix mbld test properly.
2016-01-05add atomics for plan9Ori Bernstein
2016-01-04Implement freebsd condition variables.Ori Bernstein
2016-01-04Add umtx implementation of mutex.Ori Bernstein
umtx... it's basically futex.
2015-12-27Shit, I also accidentally committed the smoketest.Ori Bernstein
2015-12-27Remove references to half-assed locks.Ori Bernstein
2015-12-14Spawn and exit on FreeBSDOri Bernstein
2015-12-12Build under the new init-before-use regimeOri Bernstein
2015-11-28Improve comments.Ori Bernstein
2015-11-28Correctly handle spawning and exiting threads.Ori Bernstein
We now unmap the stack correctly on exit. We still have no good thread.exit() all.
2015-09-18Add futex-based future implementation.Ori Bernstein
2015-09-18Make tests run faster.Ori Bernstein
Reduce iterations a bit so we can run them more often.
2015-09-18Fix condvars to use requeue.Ori Bernstein
The docs are wrong. Fuck.
2015-09-17Add basic test for condvars.Ori Bernstein
2015-09-17Simplify the condvar a bit.Ori Bernstein
2015-09-17Update tests.Ori Bernstein
2015-09-16Add first crack at condvars.Ori Bernstein
2015-09-16Make the tests a bit more stressful.Ori Bernstein
2015-09-16Remove spin on unlock.Ori Bernstein
It doesn't seem to help, so let's just drop it.
2015-09-16Unbreak mutex.Ori Bernstein
2015-09-16Comment the code.Ori Bernstein
2015-09-16Rename 'Sleep' to 'Lockedcontended'.Ori Bernstein
Clearer meaning.
2015-09-16Add more atomics for pointer-sized things.Ori Bernstein
2015-09-16Add mutex implementation.Ori Bernstein
2015-08-28Move to use libsys's fnclone.Ori Bernstein
We had our own. We don't need it any more.