Skip to content

Commit

Permalink
xrCore: fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleivg committed May 25, 2018
1 parent 68389c6 commit 138b803
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/xrCore/LocatorAPI_defs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ FS_File::FS_File(const xr_string& nm, const _FINDDATA_T& f)
set(nm, f.size, f.time_write, (f.attrib & _A_SUBDIR) ? flSubDir : 0);
}
#else
FS_File::FS_File(const _FINDDATA_T& f) { ; }
FS_File::FS_File(const xr_string& nm, const _FINDDATA_T& f) { ; }
FS_File::FS_File(const _FINDDATA_T& f) {}
FS_File::FS_File(const xr_string& nm, const _FINDDATA_T& f) {}
#endif


Expand Down
20 changes: 10 additions & 10 deletions src/xrCore/Threading/Event.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ class XRCORE_API Event
#if defined(WINDOWS)
void* handle;
#elif defined(LINUX)
struct EventHandle
{
pthread_mutex_t mutex;
pthread_cond_t cond;
bool signaled;
};
struct EventHandle
{
pthread_mutex_t mutex;
pthread_cond_t cond;
bool signaled;
};
pthread_mutex_t handle;

private:
EventHandle m_id;
EventHandle m_id;
#endif

public:
Expand All @@ -27,9 +27,9 @@ class XRCORE_API Event
// Set the event to the signalled state.
void Set() noexcept;
// Wait indefinitely for the object to become signalled.
void Wait() const noexcept;
void Wait() noexcept;
// Wait, with a time limit, for the object to become signalled.
bool Wait(u32 millisecondsTimeout) const noexcept;
bool Wait(u32 millisecondsTimeout) noexcept;

void* GetHandle() const noexcept { return handle; }
void* GetHandle() noexcept { return handle; }
};

0 comments on commit 138b803

Please sign in to comment.