Also, according to InkAPI.cc (see the comment above TSVConnCreate) it
shouldn't be used. So if that's the case, how else can you create a Vconn?

On 2/1/12 11:09 AM, "Brian Geffon" <briangef...@gmail.com> wrote:

>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