Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

Welcome to Software Development on Codidact!

Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.

Activity for Silicomancer‭

Type On... Excerpt Status Date
Comment Post #281486 @dmckee I am not sure about QFile/QTextStream performance. Current code uses them, so I will give them a try. For the moment I would like to get rid of the central writer thread. Question is still open: Is it allowed to call QFile and QTextStream methods from multiple threads (with or without a mutex...
(more)
about 3 years ago
Comment Post #281496 @ArtOfCode I guess the second notification was due to my successful retry. I deleted that one as well. However this means the failed tries didn't create any notifications.
(more)
about 3 years ago
Comment Post #281496 First one was "Your solution is how I have solved it currently (well, a bit more complex but it boils down exactly to your idea). However moving the file work into a single writer thread does not scale." But as I said, other comments also didn't work. I tried many times. I just retried and now it wor...
(more)
about 3 years ago
Edit Post #281486 Post edited:
about 3 years ago
Edit Post #281496 Initial revision about 3 years ago
Question Comments do not appear
I Just tried to post a comment to this answer: https://software.codidact.com/posts/281493#answer-281493 But it didn't work. I could click "Post" but no comment appeared. I tried different sentences, none worked. I could successfully post a comment to my previous meta question: https://sof...
(more)
about 3 years ago
Comment Post #281491 @Alexei I see, thanks! Any statement about the 6. tag?
(more)
about 3 years ago
Edit Post #281486 Post edited:
about 3 years ago
Edit Post #281491 Post edited:
about 3 years ago
Edit Post #281491 Initial revision about 3 years ago
Question Editing tags failed?
I edited the tags of my very first Codidact question: https://software.codidact.com/posts/281486 Someone proposed the "python" tag. Since I am working with C++, I removed the "multithreading" tag and added "C++". (I am not sure if that was a good idea. But that is not my problem.) Current state ...
(more)
about 3 years ago
Edit Post #281486 Post edited:
about 3 years ago
Edit Post #281486 Post edited:
about 3 years ago
Edit Post #281486 Initial revision about 3 years ago
Question Write to same file from multiple threads
I want to write a text file from multiple threads. The file structure is line-oriented. This means writing of lines should be atomic. I am using Qt 5.15.2. Is it enough to protect a shared QTextStream/QFile pair using a QMutex? EDIT: For now using dmckee's‭ solution I have solved it (well...
(more)
about 3 years ago