Split cci_thread_init into per-process and per-thread portions
authorTom Yu <tlyu@mit.edu>
Mon, 12 Dec 2011 20:46:20 +0000 (20:46 +0000)
committerTom Yu <tlyu@mit.edu>
Mon, 12 Dec 2011 20:46:20 +0000 (20:46 +0000)
commitdb0db11147deb5767cccb46820401c2754a7ed16
tree33e3b4cc027b04259070bf3fc4fd860234358d06
parent8c6030f1d6f8531563297d984848b46b9ede86bf
Split cci_thread_init into per-process and per-thread portions

Call the per-thread code on thread attach and per-process once per
process.  Previously, while the function was named 'thread', it was
only actually called once per process.  Currently, the per-thread
code does nothing on non-windows platforms and is not even actually
invoked.

Fixes a windows bug when multiple non-main threads try to use ccapi
at the same time.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7050

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25569 dc483132-0cff-0310-8789-dd5450dbe970
src/ccapi/common/win/OldCC/autolock.hxx
src/ccapi/lib/ccapi_context.c
src/ccapi/lib/ccapi_ipc.c
src/ccapi/lib/ccapi_ipc.h
src/ccapi/lib/ccapi_os_ipc.h
src/ccapi/lib/win/OldCC/client.cxx
src/ccapi/lib/win/ccapi_os_ipc.cxx
src/ccapi/lib/win/debug.exports
src/ccapi/lib/win/dllmain.cxx