Daten aus einem Key herausholen
Submitted by rac on 13 January, 2008 - 16:25.
-
int send_data(char* data)
-
{
-
int* saved_connp;
-
...
-
saved_connp = pthread_getspecific( conn_key );
-
write( *saved_connp, ...);
-
...
-
}
-
int receive_data(char** data)
-
{
-
int* saved_connp;
-
...
-
saved_connp = pthread_getspecific( conn_key );
-
read( *saved_connp, ...);
-
...
-
}
»
- Printer-friendly version
- Download PDF
- 434 reads

Post new comment