//
// sub_100240BB8 from 0x100240bb8 to 0x100240c18 (96 bytes)
//
// 2 xrefs:
// > sub_100240B64 @ 0x100240b78
// > cocos2d::extension::CCHttpClient::dCCHttpClient @ 0x100240eb0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall sub_100240BB8(__int64 a1)
{
std::thread *v2; // x19
std::thread *v3; // x20
std::mutex::lock((std::mutex *)(a1 + 72));
*(_BYTE *)(a1 + 184) = 1;
std::mutex::unlock((std::mutex *)(a1 + 72));
std::condition_variable::notify_all((std::condition_variable *)(a1 + 136));
v2 = *(std::thread **)a1;
v3 = *(std::thread **)(a1 + 8);
while ( v2 != v3 )
{
if ( v2->__t_ )
std::thread::join(v2);
++v2;
}
}