设为首页 收藏本站
查看: 306|回复: 0

[经验分享] Migrate Win32 C/C++ applications to Linux on POWER, Part 3: Semaphores

[复制链接]

尚未签到

发表于 2015-12-10 08:54:25 | 显示全部楼层 |阅读模式
http://www.ibm.com/developerworks/systems/library/es-win32linux-sem.html

Introduction
  This article, third in a series, is about migrating the Win32 C/C++application to Linux on POWER with respect to semaphore APIs. Part 1 of this series addressed Win32 API mapping and Part 2 focused on how to map Win32 to Linux with respect to mutexAPIs. You are encouraged to read Part 1 and Part 2 of this series beforeproceeding further.

Semaphores
  A semaphore is a resource that contains an integer value. Semaphores allowsynchronization of processes by testing and setting the integer value in asingle atomic operation. Usually, the main use of a semaphore is tosynchronize a thread?s action with other threads. This is also a usefultechnique for coordinating or synchronizing activities in which multipleprocesses compete for the same operating system resources.
  Linux provides Portable Operating System Interface (POSIX) semaphores, aswell as pthread conditional variables to map the Win32 semaphore APIs.Both have their share of pros and cons. It is up to your discretion to useeither one based on application logic. The various points to consider inthe mapping process of the event semaphore are:

  • Type of semaphore: Win32 supports both named and un-namedevent semaphores. The named semaphores are shared across processes.Linux does not support this option. An Inter-Process Communication(IPC) message queues sample code listed in this article to show youhow to work around it.
  • Initial state: In Win32, the semaphore might have an initialvalue. In Linux, the POSIX semaphore supports this functionality, butthe pthreads do not. You need to consider this when usingpthreads.
  • Timeout: Win32 event semaphores support timed wait. In Linux,the POSIX semaphore implementation only supports indefinite wait(blocking). The pthreads implementation supports both blocking andtimeouts. The pthread_cond_timedwait() call provides atimeout value during wait, and the pthread_cond_wait() isused for indefinite wait.
  • Signaling: In Win32, signaling a semaphore wakes up all thethreads that are waiting on the semaphore. In Linux, the POSIX threadimplementation wakes up only one thread at a time. The pthreadsimplementation has a pthread_cond_signal() call thatwakes up one thread and a pthread_cond_broadcast() callthat signals all the threads waiting on the semaphore.
Table 1. Semaphoremapping tableWin32pthread LinuxPOSIXCreateSemaphorepthread_mutex_init(&(token)->mutex, NULL))
pthread_cond_init(&(token)->condition, NULL))sem_initCloseHandle (semHandle)pthread_mutex_destroy(&(token->mutex))
pthread_cond_destroy(&(token->condition))sem_destroyReleaseSemaphore(semHandle, 1, NULL)pthread_cond_signal(&(token->condition))sem_postWaitForSingleObject(semHandle,
INFINITE)
WaitForSingleObject(semHandle,
timelimit)pthread_cond_wait(&(token->condition),
&(token->mutex))
pthread_cond_timedwait(&(token
->condition), &(token->mutex))sem_wait
sem_trywait  Back to top
Condition variable
  A condition variable enables developers to implement a condition in which athread executes and then blocked. The Microsoft? Win32 interface doesnot support condition variables natively. To work around this omission, Iuse the POSIX condition variable emulations synchronization primitives,which are outlined in the series of articles. In Linux, it guarantees thethreads blocked on the condition will be unblocked when the conditionchanges. It also allows you to unlock the mutex and wait on the conditionvariable atomically, without the possible intervention of another thread.However, a mutex should accompany each condition variable. Table 1 above displays the pthread conditionvariable for synchronization between threads.
  Back to top
Creating a semaphore
  In Win32, the CreateSemaphore function creates a named orunnamed semaphore object. Linux does not support named semaphores.
Listing 1. Creating asemaphore

HANDLE CreateSemaphore (
LPSECURITY_ATTRIBUTESlpSemaphoreAttributes,
LONGlInitialCount,
LONGlMaximunCount,
LPCTSTRlpName
);
  In Linux, the call sem_init() also creates a POSIXsemaphore:
Listing 2. POSIX semaphore

int sem_init(sem_t *sem, int pshared, unsigned int value
  Linux uses the pthread_condition_init call to create asemaphore object within the current process that maintains a count betweenzero and a maximum value. The count is decremented each time a threadcompletes a wait for the semaphore object and incremented each time athread releases the semaphore. When the count reaches zero, the state ofthe semaphore object becomes non-signaled.
Listing 3. pthread_condition_init call to create a semaphore object

int pthread_cond_init(pthread_cond_t *cond, const pthread_condattr_t *attr);
Listing 4. Win32 sample code

HANDLE semHandle;

semHandle = CreateSemaphore(NULL, 0, 256000, NULL);
/* Default security descriptor     */
if( semHandle == (HANDLE) NULL)                     
/* Semaphore object without a name */
{
return RC_OBJECT_NOT_CREATED;
}
Listing 5. Equivalent Linux code

typedef struct
{
pthread_mutex_tmutex;
pthread_cond_tcondition;
intsemCount;
}sem_private_struct, *sem_private;

sem_private    token;

token = (sem_private) malloc(sizeof(sem_private_struct));

if(rc = pthread_mutex_init(&(token->mutex), NULL))
{
free(token);
return RC_OBJECT_NOT_CREATED;
}

if(rc = pthread_cond_init(&(token->condition), NULL))
{
pthread_mutex_destroy( &(token->mutex) );
free(token);
return RC_OBJECT_NOT_CREATED;
}

token->semCount = 0;
  Back to top
Destroying an eventsemaphore
  Win32 uses CloseHandle to delete the semaphore object createdby the CreateSemaphore.
Listing 6. Destroying an eventsemaphore

BOOL CloseHandle (HANDLE hObject);
  Linux POSIX semaphores use sem_destroy() to destroy theunnamed semaphore.
Listing 7. sem_destroy()

int sem_destroy(sem_t *sem);
  In Linux pthreads, the pthread_cond_destroy() is used todestroy the conditional variable.
Listing 8. pthread_cond_destroy()

int pthread_cond_destroy(pthread_cond_t *cond);
Listing 9. Win32 code andeuivalent Linux codeWin32 codeEquivalent Linux codeCloseHandle(semHandle);pthread_mutex_destroy(&(token->mutex));

pthread_cond_destroy(&(token->condition));

free (token);  Back to top
Posting an event semaphore
  In Win32, the ReleaseSemaphore function increases the count ofthe specified semaphore object by a specified amount.
Listing 10. ReleaseSemaphore function

BOOL ReleaseSemaphore(
HANDLE hSemaphore,
LONG lReleaseCount,
LPLONGlpPreviousCount
);
  Linux POSIX semaphores use sem_post() to post an eventsemaphore. This wakes up any of the threads blocked on thesemaphore.
Listing 11. sem_post()

int sem_post(sem_t * sem);
  In Linux, pthread_cond_signal wakes up a thread waiting on aconditional variable. Linux calls this function to post one eventcompletion for the semaphore identified by the object. The calling threadincrements the semaphore. If the semaphore value is incremented from zeroand there is any threads blocked in the pthread_cond, waitfor the semaphore because one of them is awakened. By default, theimplementation can choose any of the waiting threads.
Listing 12. pthread_cond_signal

int pthread_cond_signal(pthread_cond_t *cond);
Listing 13. Win32 code andequivalent Linux codeWin32 codeEquivalent Linux codeReleaseSemaphore(semHandle, 1, NULL)if (rc = pthread_mutex_lock(&(token->mutex)))
return RC_SEM_POST_ERROR;

token->semCount ++;

if (rc = pthread_mutex_unlock(&(token->mutex)))
return RC_SEM_POST_ERROR;

if (rc = pthread_cond_signal(&(token->condition)))
return RC_SEM_POST_ERROR;   Back to top
Waiting an event semaphore
  Win32 calls the WaitForSingleObject function to wait for anevent completion on the indicated semaphore. You can use this method whenwaiting on a single thread synchronization object. The method is signaledwhen the object is set to signal or the time out interval is finished. Ifthe time interval is INFINITE, it waits infinitely.
Listing 14. WaitForSingleObject function

DWORD WaitForSingleObject(
HANDLE hHANDLE,
DWORDdwMilliseconds
);
  Use the WaitForMultipleObjects function to wait for multipleobjects signaled. In the Semaphore thread synchronization object, theobject is non-signaled when the counters go to zero.
Listing 15. WaitForMultipleObjects function

DWORD WaitForMultipleObjects(
DWORDnCount,
ConstHANDLE* lpHandles,
BOOLbWaitAll,
DWORDdwMilliseconds
);
  Linux POSIX semaphores use sem_wait() to suspend the callingthread until the semaphore has a non-zero count. Then it atomicallydecreases the semaphore count.
Listing 16. sem_wait() function

int sem_wait(sem_t * sem);
  The timeout option is not available in the POSIX semaphore. However, youcan achieve this by issuing a non-blocking sem_trywait() within a loop, which counts the timeout value.
Listing 17. sem_trywait() function

int sem_trywait(sem_t  * sem);
  In Linux, the pthread_cond_wait() blocks the calling thread.The calling thread decrements the semaphore. If the semaphore is zero whenthe pthread_cond_wait is called, the pthread_cond_wait() blocks until another thread incrementsthe semaphore.
Listing 18. pthread_cond_wait() function

int pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t  *mutex);
  The pthread_cond_wait function first releases the associated external_mutex of type pthread_mutex_t, which must be heldwhen the caller checks the condition expression.
Listing 19. Win32 code andequivalent Linux codeWin32 codeEquivalent Linux codeDWORD  retVal;

retVal = WaitForSingleObject(semHandle, INFINITE);

if (retVal == WAIT_FAILED)return RC_SEM_WAIT_ERROR if (rc =  pthread_mutex_lock(&(token->mutex)))
return RC_SEM_WAIT_ERROR;

while (token->semCount condition), &(token->mutex));
if (rc &&errno != EINTR )
break;
}
token->semCount--;

if (rc = pthread_mutex_unlock(&(token->mutex)))
return RC_SEM_WAIT_ERROR;   If you need to block the calling thread for a specific time, then use the pthread_cond_timewait to block the thread. This method iscalled to wait for an event completion on the indicated semaphore, with aspecified time.
Listing 20. pthread_cond_timewait

int pthread_cond_timewait(
pthread_cond_t*cond,
pthread_mutex_t*mutex,
timespec*tm
);
Listing 21. Win32 code andequivalent Linux codeWin32 codeEquivalent Linux coderetVal = WaitForSingleObject(SemHandle, timelimit);

if (retVal == WAIT_FAILED)
return RC_SEM_WAIT_ERROR;

if (retVal == WAIT_TIMEOUT)
return RC_TIMEOUT;int rc;
struct timespectm;
struct timeb                  tp;
longsec, millisec;

if (rc =  pthread_mutex_lock(&(token->mutex)))
return RC_SEM_WAIT_ERROR;

sec      = timelimit / 1000;
millisec = timelimit % 1000;
ftime( &tp );
tp.time    += sec;
tp.millitm += millisec;
if( tp.millitm > 999 )
{
tp.millitm -= 1000;
tp.time++;
}
tm.tv_sec = tp.time;
tm.tv_nsec = tp.millitm * 1000000 ;

while (token->semCount condition), &(token->mutex), &tm);
if (rc && (errno != EINTR) )
break;
}
if ( rc )
{
if ( pthread_mutex_unlock(&(token->mutex)) )
return RC_SEM_WAIT_ERROR );

if ( rc == ETIMEDOUT) /* we have a time out */
return RC_TIMEOUT );

return RC_SEM_WAIT_ERROR );

}
token->semCount--;

if (rc = pthread_mutex_unlock(&(token->mutex)))
return RC_SEM_WAIT_ERROR;  Back to top
POSIX semaphore sample code
  Listing 22 uses POSIX semaphores to implementsynchronization between threads A and B:
Listing 22. POSIX semaphore samplecode

sem_t sem; /* semaphore object */
int irc;   /* return code */

/* Initialize the semaphore - count is set to 1*/
irc = sem_init (sem, 0,1)

...

/* In Thread A */

/* Wait for event to be posted */

sem_wait (&sem);

/* Unblocks immediately as semaphore initial count was set to 1 */

.......

/* Wait again for event to be posted */

sem_wait (&sem);

/* Blocks till event is posted */

/* In Thread B */
/* Post the semaphore */
...

irc = sem_post (&sem);

/* Destroy the semaphore */
irc = sem_destroy(&sem);
  Back to top
Intra-process semaphore samplecode
Listing 23. Win32 intra-process semaphoresample code

#include
#include
#include

void thrdproc      (void   *data);  // the thread procedure (function)
to be executed

HANDLE   semHandle;

int
main( int argc, char **argv )
{
HANDLE    *threadId1;
HANDLE    *threadId2;
int        hThrd;
unsigned   stacksize;
int    arg1;

if( argc < 2 )
arg1 = 7;
else
arg1 = atoi( argv[1] );

printf( "Intra Process Semaphor test.\n" );
printf( "Start.\n" );

semHandle = CreateSemaphore(NULL, 1, 65536, NULL);
if( semHandle == (HANDLE) NULL)
{
printf("CreateSemaphore error: %d\n", GetLastError());
}

printf( "Semaphor created.\n" );

if( stacksize < 8192 )
stacksize = 8192;
else
stacksize = (stacksize/4096+1)*4096;

hThrd = _beginthread( thrdproc, // Definition of a thread entry
NULL,
stacksize,
"Thread 1");

if (hThrd == -1)
return RC_THREAD_NOT_CREATED);

*threadId1 = (HANDLE) hThrd;

hThrd = _beginthread( thrdproc, // Definition of a thread entry
NULL,
stacksize,
?Thread 2");

if (hThrd == -1)
return RC_THREAD_NOT_CREATED);

*threadId2 = (HANDLE) hThrd;

printf( "Main thread sleeps 5 sec.\n" );

sleep(5);

if( ! ReleaseSemaphore(semHandle, 1, NULL) )
printf("ReleaseSemaphore error: %d\n", GetLastError());

printf( "Semaphor released.\n" );
printf( "Main thread sleeps %d sec.\n", arg1 );

sleep (arg1);

if( ! ReleaseSemaphore(semHandle, 1, NULL) )
printf("ReleaseSemaphore error: %d\n", GetLastError());

printf( "Semaphor released.\n" );
printf( "Main thread sleeps %d sec.\n", arg1 );
sleep (arg1);

CloseHandle(semHandle);

printf( "Semaphor deleted.\n" );
printf( "Main thread sleeps 5 sec.\n" );

sleep (5);
printf( "Stop.\n" );

return OK;
}

void
thread_proc( void *pParam )
{

DWORD  retVal;

printf( "\t%s created.\n", pParam );

retVal = WaitForSingleObject(semHandle, INFINITE);

if (retVal == WAIT_FAILED)
return RC_SEM_WAIT_ERROR;

printf( "\tSemaphor blocked by %s. (%lx)\n", pParam, retVal);
printf( "\t%s sleeps for 5 sec.\n", pParam );
sleep(5);

if( ! ReleaseSemaphore(semHandle, 1, NULL) )
printf("ReleaseSemaphore error: %d\n", GetLastError());

printf( "\tSemaphor released by %s.)\n", pParam);
}
Listing 24. Equivalent Linux intra-processsemaphore sample code

#include
#include
#include
#include
#include
#include

void  thread_proc (void * data);

pthread_mutexattr_t     attr;
pthread_mutex_t         mutex;

typedef struct
{
pthread_mutex_t         mutex;
pthread_cond_t          condition;
int                     semCount;
}sem_private_struct, *sem_private;

sem_private     token;

int main( int argc, char **argv )
{
pthread_t             threadId1;
pthread_t             threadId2;
pthread_attr_t        pthread_attr;
pthread_attr_t        pthread_attr2;

intarg1;
int                   rc;

if( argc < 2 )
arg1 = 7;
else
arg1 = atoi( argv[1] );

printf( "Intra Process Semaphor test.\n" );
printf( "Start.\n" );

token =(sem_private)  malloc (sizeof (sem_private_struct));        

if(rc = pthread_mutex_init( &(token->mutex), NULL))
{
free(token);
return 1;
}

if(rc = pthread_cond_init(&(token->condition), NULL))
{
printf( "pthread_condition ERROR.\n" );
pthread_mutex_destroy( &(token->mutex) );
free(token);
return 1;
}

token->semCount = 0;

printf( "Semaphor created.\n" );

if (rc = pthread_attr_init(&pthread_attr))
{
printf( "pthread_attr_init ERROR.\n" );
exit;
}

if (rc = pthread_attr_setstacksize(&pthread_attr, 120*1024))
{
printf( "pthread_attr_setstacksize ERROR.\n" );
exit;
}

if (rc = pthread_create(&threadId1,
&pthread_attr,
(void*(*)(void*))thread_proc,
"Thread 1" ))
{
printf( "pthread_create ERROR.\n" );
exit;
}

if (rc = pthread_attr_init(&pthread_attr2))
{
printf( "pthread_attr_init2 ERROR.\n" );
exit;
}

if (rc = pthread_attr_setstacksize(&pthread_attr2, 120*1024))
{
printf( "pthread_attr_setstacksize2 ERROR.\n" );
exit;
}

if (rc = pthread_create(&threadId2,
&pthread_attr2,
(void*(*)(void*))thread_proc,
"Thread 2" ))
{
printf( "pthread_CREATE ERROR2.\n" );
exit ;  // EINVAL, ENOMEM
}

printf( "Main thread sleeps 5 sec.\n" );
sleep( 5 );

if (rc =  pthread_mutex_lock(&(token->mutex)))
{
printf( "pthread_mutex_lock ERROR 1.\n" );
return 1;
}

token->semCount ++;

if (rc = pthread_mutex_unlock&(token->mutex)))
{
printf( "pthread_mutex_unlock ERROR 1.\n" );
return 1;
}

if (rc = pthread_cond_signal(&(token->condition)))
{
printf( "pthread_cond_signal ERROR1.\n" );
return 1;
}

printf( "Semaphor released.\n" );
printf( "Main thread sleeps %d sec.\n", arg1 );
sleep( arg1 );

if (rc =  pthread_mutex_lock(&(token->mutex)))
{
printf( "pthread_mutex_lock ERROR.\n" );
return 1;
}

token->semCount ++;

if (rc = pthread_mutex_unlock(&(token->mutex)))
{
printf( "pthread_mutex_lock ERROR.\n" );
return 1;
}

if (rc = pthread_cond_signal(&(token->condition)))
{
printf( "pthread_cond_signal ERROR.\n" );
return 1;
}

printf( "Semaphor released.\n" );
printf( "Main thread sleeps %d sec.\n", arg1 );
sleep( arg1 );

pthread_mutex_destroy(&(token->mutex));
pthread_cond_destroy(&(token->condition));

printf( "Semaphor deleted.\n" );
printf( "Main thread sleeps 5 sec.\n" );
sleep( 5 );
printf( "Stop.\n" );

return 0;
}

void
thread_proc( void *pParam )
{
intrc;

printf( "\t%s created.\n", pParam );

if (token == (sem_private) NULL)
return ;

if (rc =  pthread_mutex_lock(&(token->mutex)))
{
printf( "pthread_mutex_lock ERROR2.\n" );
return ;
}

while (token->semCount condition), &(token->mutex));
if (rc && errno != EINTR )
break;
}
if( rc )
{
pthread_mutex_unlock(&(token->mutex));
printf( "pthread_mutex_unlock ERROR3.\n" );
return;
}
token->semCount--;

if (rc = pthread_mutex_unlock(&(token->mutex)))
{
printf( "pthread_mutex_lock ERROR.\n" );
return ;
}

printf( "\tSemaphor blocked by %s. (%lx)\n", pParam, rc );
printf( "\t%s sleeps for 5 sec.\n", pParam );
sleep( 5 );

if (rc =  pthread_mutex_lock(&(token->mutex)))
{
printf( "pthread_mutex_lock ERROR.\n" );
return ;
}

token->semCount ++;

if (rc = pthread_mutex_unlock(&(token->mutex)))
{
printf( "pthread_mutex_unlock ERROR.\n" );
return ;
}

if (rc = pthread_cond_signal(&(token->condition)))
{
printf( "pthread_cond_signal ERROR.\n" );
return ;
}

printf( "\tSemaphor released by %s. (%lx)\n", pParam, rc );
  Back to top
Inter-process semaphore samplecode
Listing 25. Win32 Inter-process semaphoreprocess 1 sample code

#include
#include

#define WAIT_FOR_ENTER  printf( "Press ENTER\n" );getchar()

int main()
{
HANDLEsemaphore;
intnRet;
DWORD          retVal;

SECURITY_ATTRIBUTESsec_attr;

printf( "Inter Process Semaphore test - Process 1.\n" );
printf( "Start.\n" );

sec_attr.nLength              = sizeof( SECURITY_ATTRIBUTES );
sec_attr.lpSecurityDescriptor = NULL;
sec_attr.bInheritHandle       = TRUE;

semaphore = CreateSemaphore( &sec_attr, 1, 65536, ?456789" );
if( semaphore == (HANDLE) NULL )
return RC_OBJECT_NOT_CREATED;

printf( "Semaphore created. (%lx)\n", nRet );

WAIT_FOR_ENTER;

if( ! ReleaseSemaphore(semaphore, 1, NULL) )
return SEM_POST_ERROR;

printf( "Semaphore Posted. \n");

WAIT_FOR_ENTER;

retVal = WaitForSingleObject (semaphore, INFINITE );
if (retVal == WAIT_FAILED)
return SEM_WAIT_ERROR;

printf( "Wait for Semaphore. \n");

WAIT_FOR_ENTER;

CloseHandle (semaphore);
printf( "Semaphore deleted.\n" );
printf( "Stop.\n" );

return 0;
}
  Listing 26 illustrates the message IPC codes as anexample to support the named semaphore shared in the processes.
Listing 26. Equivalent Linuxinter-process sempahore process 1 sample code

#include
#include
#include
#include
#include
#include

#define WAIT_FOR_ENTER  printf( "Press ENTER\n" );getchar()

struct msgbuf {
long mtype;         /* type of message */
char mtext[1];      /* message text */
};

int main()
{
key_t           msgKey;
int             flag;
struct msgbuf   buff;
int             sem;
int             nRet =0;

printf( "Inter Process Semaphore test - Process 1.\n" );
printf( "Start.\n" );

flag = IPC_CREAT|IPC_EXCL;

if( ( msgKey = (key_t) atol( "456789" ) )

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.iyunv.com/thread-149004-1-1.html 上篇帖子: Migrate Win32 C/C++ application to Linux on POWER, Part 2: Mutexes 下篇帖子: Linux 时间同步问题
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表