Commit a348f60f authored by Francisco Cabrera Fernandez's avatar Francisco Cabrera Fernandez
Browse files

a

parent dd024e50
......@@ -89,11 +89,10 @@ int main(void)
pthread_t hilo_control;
if (int pthread_create(&hilo_control, NULL, (void*)controlVideo(socket_to_clientTCP,id_cliente, comunicacion, frame, cap, encoded, client_addr, client_addr_size),
NULL) != 0) perror("No se pudo ejecutar el programa de control"); //separo thread (idcliente, tcp)
if (int pthread_create(&hilo_control, NULL, void * controlVideo(socket_to_clientTCP,id_cliente, comunicacion, frame, cap, encoded, client_addr, client_addr_size), NULL) != 0) perror("No se pudo ejecutar el programa de control"); //separo thread (idcliente, tcp)
thread_create(NULL,NULL,NULL,NULL);
pthread_join(hilo_control, NULL);
//primitiva CLOSE
close(socket_to_clientTCP);
......@@ -104,6 +103,8 @@ int main(void)
close(server_socketTCP);
}//fin servidor
void controlVideo(int socket_to_clientTCP,int id_cliente, int &comunicacion[], Mat frame, VideoCapture cap, vector<uchar> encoded, sockaddr_in client_addr, socklen_t client_addr_size){
pthread_mutex_t pausa;
pthread_mutex_t finalizar;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment