<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Is it possible to initialize mutexes and condition variables right away?<BR>
Instead of having the delayed initialization?<BR>
 <BR>
 <BR>
Mutex initialization is pretty fast on Windows, no syscall.<BR>
Having it be delayed like it is maybe isn't worthwhile.<BR>
 <BR>
 <BR>
As far as I know, the interface is just "NEW(MUTEX)" and the only that can run is, like, "constant field initializers", not calls to any code/"constructors". ?<BR>
 <BR>
 <BR>
I know there is the idiom NEW(T).init() but that is up to callers to adhere to.<BR>
Hm. I know Modula-3 was avoiding creating unnecessary language features, but in this case it seems maybe the wrong thing? Too late I guess.<BR>
 <BR>
 <BR>
In the pthread initialization, can we just copy from a statically initialized never used mutex? Or we must call pthread_mutex_init?<BR>
I think we must call pthread_mutex_init, at least if we are to call pthread_mutex_delete.<BR>
 <BR>
 <BR>
 - Jay<BR><BR>                                           </body>
</html>