Skip to content

Commit

Permalink
Switch to Godot 3.2.4 threading model
Browse files Browse the repository at this point in the history
  • Loading branch information
lyuma committed Feb 23, 2021
1 parent 84a76ce commit f61a1d3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions scene/3d/arvr_nodes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -692,13 +692,7 @@ void ARVROrigin::_notification(int p_what) {

ARVROrigin::ARVROrigin() {
tracked_camera = NULL;
#ifndef NO_THREADS
update_mutex = Mutex::create();
#endif
};

ARVROrigin::~ARVROrigin() {
#ifndef NO_THREADS
memdelete(update_mutex);
#endif
};
2 changes: 1 addition & 1 deletion scene/3d/arvr_nodes.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ class ARVROrigin : public Spatial {

private:
static const int TRANSFORM_BUFFER_SIZE = 3;
Mutex *update_mutex;
Mutex update_mutex;

Transform pending_transform_buffer[TRANSFORM_BUFFER_SIZE];
uint64_t pending_count = 0;
Expand Down

0 comments on commit f61a1d3

Please sign in to comment.