@@ -143,7 +143,7 @@ var LibraryPThread = {
143143
144144#if PTHREADS_PROFILING
145145 getThreadName ( pthreadPtr ) {
146- var profilerBlock = { { { makeGetValue ( 'pthreadPtr' , C_STRUCTS . pthread . profilerBlock , POINTER_TYPE ) } } } ;
146+ var profilerBlock = { { { makeGetValue ( 'pthreadPtr' , C_STRUCTS . pthread . profilerBlock , '*' ) } } } ;
147147 if ( ! profilerBlock ) return "" ;
148148 return UTF8ToString ( profilerBlock + { { { C_STRUCTS . thread_profiler_block . name } } } ) ;
149149 } ,
@@ -162,7 +162,7 @@ var LibraryPThread = {
162162 } ,
163163
164164 threadStatusAsString ( pthreadPtr ) {
165- var profilerBlock = { { { makeGetValue ( 'pthreadPtr' , C_STRUCTS . pthread . profilerBlock , POINTER_TYPE ) } } } ;
165+ var profilerBlock = { { { makeGetValue ( 'pthreadPtr' , C_STRUCTS . pthread . profilerBlock , '*' ) } } } ;
166166 var status = ( profilerBlock == 0 ) ? 0 : Atomics . load ( HEAPU32 , { { { getHeapOffset ( 'profilerBlock + ' + C_STRUCTS . thread_profiler_block . threadStatus , 'i32' ) } } } ) ;
167167 return PThread . threadStatusToString ( status ) ;
168168 } ,
@@ -761,7 +761,7 @@ var LibraryPThread = {
761761 // Deduce which WebGL canvases (HTMLCanvasElements or OffscreenCanvases) should be passed over to the
762762 // Worker that hosts the spawned pthread.
763763 // Comma-delimited list of CSS selectors that must identify canvases by IDs: "#canvas1, #canvas2, ..."
764- var transferredCanvasNames = attr ? { { { makeGetValue ( 'attr' , C_STRUCTS . pthread_attr_t . _a_transferredcanvases , POINTER_TYPE ) } } } : 0 ;
764+ var transferredCanvasNames = attr ? { { { makeGetValue ( 'attr' , C_STRUCTS . pthread_attr_t . _a_transferredcanvases , '*' ) } } } : 0 ;
765765#if OFFSCREENCANVASES_TO_PTHREAD
766766 // Proxied canvases string pointer -1 is used as a special token to fetch
767767 // whatever canvases were passed to build in -s
0 commit comments