Skip to content
This repository has been archived by the owner on Jul 18, 2020. It is now read-only.

Commit

Permalink
Building: fix class/struct inconsistencies causing MacOS build warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidBluecame committed Mar 14, 2017
1 parent 8c374d3 commit 5c6f78b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 13 deletions.
2 changes: 1 addition & 1 deletion include/core_api/light.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

__BEGIN_YAFRAY

struct surfacePoint_t;
class surfacePoint_t;
class background_t;

enum { LIGHT_NONE = 0, LIGHT_DIRACDIR = 1, LIGHT_SINGULAR = 1<<1 }; // "LIGHT_DIRACDIR" *must* be same as "BSDF_SPECULAR" (material.h)!
Expand Down
2 changes: 1 addition & 1 deletion include/core_api/material.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class YAFRAYCORE_EXPORT BSDF_t
};
*/

struct surfacePoint_t;
class surfacePoint_t;
struct renderState_t;
class volumeHandler_t;

Expand Down
2 changes: 1 addition & 1 deletion include/core_api/object3d.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ __BEGIN_YAFRAY

class light_t;
class primitive_t;
struct surfacePoint_t;
class surfacePoint_t;

class YAFRAYCORE_EXPORT object3d_t
{
Expand Down
19 changes: 9 additions & 10 deletions include/core_api/tiledintegrator.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,15 @@

__BEGIN_YAFRAY

class threadControl_t;
class threadControl_t
{
public:
threadControl_t() : finishedThreads(0) {}
std::mutex m;
std::condition_variable c; //!< condition variable to signal main thread
std::vector<renderArea_t> areas; //!< area to be output to e.g. blender, if any
volatile int finishedThreads; //!< number of finished threads, lock countCV when increasing/reading!
};

class YAFRAYCORE_EXPORT tiledIntegrator_t: public surfaceIntegrator_t
{
Expand Down Expand Up @@ -56,15 +64,6 @@ class YAFRAYCORE_EXPORT tiledIntegrator_t: public surfaceIntegrator_t
static std::vector<int> correlativeSampleNumber; //!< Used to sample lights more uniformly when using estimateOneDirectLight
};

struct threadControl_t
{
threadControl_t() : finishedThreads(0) {}
std::mutex m;
std::condition_variable c; //!< condition variable to signal main thread
std::vector<renderArea_t> areas; //!< area to be output to e.g. blender, if any
volatile int finishedThreads; //!< number of finished threads, lock countCV when increasing/reading!
};

__END_YAFRAY

#endif // Y_TILEDINTEGRATOR_H

0 comments on commit 5c6f78b

Please sign in to comment.