mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-04 03:32:27 +00:00
Clean up threading code some more
This commit is contained in:
parent
6a3330d7c9
commit
654ceaba7d
28 changed files with 119 additions and 134 deletions
|
@ -35,7 +35,7 @@ void Bzero(void *, size_t) asm("bzero"); // gcc bug
|
|||
* Allocates thread-local storage memory for new thread.
|
||||
* @return buffer that must be released with free()
|
||||
*/
|
||||
char *_mktls(char **out_tib) {
|
||||
char *_mktls(struct CosmoTib **out_tib) {
|
||||
char *tls;
|
||||
struct CosmoTib *tib;
|
||||
|
||||
|
@ -60,7 +60,7 @@ char *_mktls(char **out_tib) {
|
|||
tib->tib_tid = -1;
|
||||
|
||||
if (out_tib) {
|
||||
*out_tib = (char *)tib;
|
||||
*out_tib = tib;
|
||||
}
|
||||
return tls;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue