فهرست منبع

Merge pull request #1915 from elfprince13/fixedSemaphoreStructToClass

Fixed semaphore struct to class
Anis 8 سال پیش
والد
کامیت
1c9bc20899
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      Engine/source/platformSDL/threads/semaphore.cpp

+ 2 - 1
Engine/source/platformSDL/threads/semaphore.cpp

@@ -25,8 +25,9 @@
 #include <SDL.h>
 #include <SDL.h>
 #include <SDL_thread.h>
 #include <SDL_thread.h>
 
 
-struct PlatformSemaphore
+class PlatformSemaphore
 {
 {
+public:
    SDL_sem *semaphore;
    SDL_sem *semaphore;
 
 
    PlatformSemaphore(S32 initialCount)
    PlatformSemaphore(S32 initialCount)