0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2025-02-18 17:50:16 +01:00

Revert "ircd:🆑 Isolate pthread enable hooking during init/finit."

This reverts commit 1a29e591ef.
This commit is contained in:
Jason Volk 2022-09-30 16:31:06 +00:00
parent 35462afd04
commit 3d990f0890

View file

@ -234,6 +234,8 @@ ircd::cl::init::init()
return;
}
const ctx::posix::enable_pthread enable_pthread;
// Link the libraries.
if(!init_libs())
{
@ -289,6 +291,7 @@ noexcept
log, "Shutting down OpenCL...",
};
const ctx::posix::enable_pthread enable_pthread;
fini_ctxs();
fini_libs();
}
@ -296,8 +299,6 @@ noexcept
bool
ircd::cl::init::init_libs()
{
const ctx::posix::enable_pthread enable_pthread;
const string_view path
{
cl::path
@ -331,8 +332,6 @@ ircd::cl::init::init_libs()
void
ircd::cl::init::fini_libs()
{
const ctx::posix::enable_pthread enable_pthread;
if(likely(linkage))
dlclose(linkage);
}