Completed the Authtoken Validate Service changes.
This commit is contained in:
@@ -38,6 +38,9 @@ extern "C" {
|
||||
|
||||
//===[ External data ]=====================================================
|
||||
|
||||
extern
|
||||
unsigned long numCChannelObjects;
|
||||
|
||||
//===[ External prototypes ]===============================================
|
||||
|
||||
//===[ Manifest constants ]================================================
|
||||
@@ -116,7 +119,7 @@ IpcClientOpenUnixRemoteEndPoint(
|
||||
// Note: The service should have been initialized before calling
|
||||
// this procedure.
|
||||
//
|
||||
// L1
|
||||
// L2
|
||||
//=======================================================================--
|
||||
{
|
||||
int retStatus = -1;
|
||||
@@ -241,6 +244,8 @@ IpcClientOpenInetRemoteEndPoint(
|
||||
pthread_mutex_lock(&clientMutex);
|
||||
|
||||
try {
|
||||
// tbd - add code to allow us to share endpoints to the same destination that are already opened
|
||||
//
|
||||
// Instantiate a RemoteEndPoint object and keep track of it
|
||||
// with a smart pointer.
|
||||
SmartRemoteEndPoint *pSmartRemoteEndPoint = new SmartRemoteEndPoint(new RemoteEndPoint(appMultithreaded,
|
||||
@@ -583,6 +588,11 @@ IpcClientShutdown(void)
|
||||
delete[] pAppName;
|
||||
pAppName = unInitialized;
|
||||
}
|
||||
|
||||
// Wait until all of the channels are gone
|
||||
while (numCChannelObjects)
|
||||
sleep(0); // Only suffer a time-slice
|
||||
sleep(0);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -593,6 +603,26 @@ IpcClientShutdown(void)
|
||||
}
|
||||
|
||||
|
||||
//++=======================================================================
|
||||
static void __attribute__((destructor))
|
||||
so_fini()
|
||||
//
|
||||
// Arguments In: None.
|
||||
//
|
||||
// Arguments Out: None.
|
||||
//
|
||||
// Returns: Nothing.
|
||||
//
|
||||
// Abstract: Library un-initialization routine.
|
||||
//
|
||||
// L2
|
||||
//=======================================================================--
|
||||
{
|
||||
DbgTrace(0, "so_fini- Start\n", 0);
|
||||
IpcClientShutdown();
|
||||
}
|
||||
|
||||
|
||||
//=========================================================================
|
||||
//=========================================================================
|
||||
|
||||
|
||||
Reference in New Issue
Block a user