1
0
mirror of https://github.com/Yours3lf/rpi-vk-driver.git synced 2024-11-29 11:24:14 +01:00

Changed passing fd by value when creating flipQueue thread

This commit is contained in:
Pete Marshall 2020-09-17 09:35:11 +01:00
parent 528da3ad10
commit 96a683fa5e

View File

@ -29,7 +29,7 @@ static void* flipQueueThreadFunction(void* vargp)
{
uint32_t run = 1;
uint64_t lastFinishedSeqno = 0;
int threadFD = *(int*)vargp;
int threadFD = (int)vargp;
while(run)
{
@ -246,7 +246,7 @@ void modeset_create_surface_for_mode(int fd, uint32_t display, uint32_t mode, mo
if(!refCount)
{
flipQueueFifo = createFifo(dataMem, fifoMem, FLIP_FIFO_SIZE, sizeof(vsyncData));
pthread_create(&flipQueueThread, 0, flipQueueThreadFunction, &fd);
pthread_create(&flipQueueThread, 0, flipQueueThreadFunction, fd);
sem_init(&flipQueueSem, 0, 0);
sem_post(&flipQueueSem);