mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-06-01 08:30:51 +00:00
Remove volatile qualifiers deprecated in C++23 (#2323)
These are protected by upload_list_lock. Addresses warnings of the form: warning: ‘++’ expression of ‘volatile’-qualified type is deprecated
This commit is contained in:
parent
1ebefca029
commit
1a703e623a
|
@ -70,8 +70,8 @@ class PseudoFdInfo
|
||||||
bool is_lock_init;
|
bool is_lock_init;
|
||||||
mutable pthread_mutex_t upload_list_lock; // protects upload_id and upload_list
|
mutable pthread_mutex_t upload_list_lock; // protects upload_id and upload_list
|
||||||
Semaphore uploaded_sem; // use a semaphore to trigger an upload completion like event flag
|
Semaphore uploaded_sem; // use a semaphore to trigger an upload completion like event flag
|
||||||
volatile int instruct_count; // number of instructions for processing by threads
|
int instruct_count; // number of instructions for processing by threads
|
||||||
volatile int completed_count; // number of completed processes by thread
|
int completed_count; // number of completed processes by thread
|
||||||
int last_result; // the result of thread processing
|
int last_result; // the result of thread processing
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user