Hi All,
I'm trying to understand something about TSTransformCreate().

Basically all it does is wrap TSVConnCreate to create a new vconn using the
Mutex of the TSHttpTxn:
   return TSVConnCreate(event_funcp,
TSContMutexGet(reinterpret_cast<TSCont>(txnp)));

I don't fully understand why the VConn needs to hold the TSHttpTxn's mutex?
Couldn't we just do a
TSMutexCreate() instead of giving it the TSHttpTxn's mutex?

I would appreciate it if anyone could explain why a transformation needs to
hold that mutex? I tried
the second parameter as null which effectively creates a new mutex and it
appeared to create all kinds
of weird race conditions...why?

Thanks!
Brian

Reply via email to