Throw if malloc fails.
Merge branch 'develop' of https://github.com/boostorg/thread into gsoc/executors
Moved to optional<T> as the return type for pull functions.