summaryrefslogtreecommitdiff
path: root/src/southbridge
diff options
context:
space:
mode:
authorRaul E Rangel <rrangel@chromium.org>2021-07-12 13:43:48 -0600
committerRaul Rangel <rrangel@chromium.org>2021-07-18 15:15:45 +0000
commitcc01da50b72e34859b5507ed0f4ae367da4ffaea (patch)
tree7d28755d558bad965b6409af1bc6bf248511e52a /src/southbridge
parent3af732ada0b4bcc2dce3a982f83dc4632f75f784 (diff)
lib/thread: Add thread_handle
The thread_handle can be used to wait for a thread to exit. I also added a return value to the thread function that will be stored on the handle after it completes. This makes it easy for the callers to check if the thread completed successfully or had an error. The thread_join method uses the handle to block until the thread completes. BUG=b:179699789 TEST=See thread_handle state update and see error code set correctly. Signed-off-by: Raul E Rangel <rrangel@chromium.org> Change-Id: Ie6f64d0c5a5acad4431a605f0b0b5100dc5358ff Reviewed-on: https://review.coreboot.org/c/coreboot/+/56229 Reviewed-by: Karthik Ramasubramanian <kramasub@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/southbridge')
0 files changed, 0 insertions, 0 deletions