Found in current project such remarkable thread body:
OMG! I want to rip my eyes off!
void* socket_handle ( void* thread_params )
{
int client_socket_int;
int* client_socket = &client_socket_int;
int* real_client_socket = reinterpret_cast<int*>( thread_params );
client_socket_int = *real_client_socket;
delete real_client_socket;
//
// a lot of using *client_socket
//
close( *client_socket );
delete client_socket;
return NULL;
}
OMG! I want to rip my eyes off!
Комментариев нет:
Отправить комментарий