by: Marcin Kalicinski |
last post by:
Hi all,
I have a problem with 'volatile' use in C++.
The function get_clocks() below tries to use a 16 bit hardware counter to
count time. The counter overflows very often. But an interrupt is...
|
by: Rick |
last post by:
Hi,
What exactly is the volatile keyword for in C? and when should we use
it/ avoid it? Thanks
Rick
|
by: r_o_h_i_t |
last post by:
Can anybody please tell me the complete properties if volatile
variables in C. And what are specific uses of them?
Thanks in advance.
|
by: Tim Rentsch |
last post by:
I have a question about what ANSI C allows/requires in a particular
context related to 'volatile'. Consider the following:
volatile int x;
int
x_remainder_arg( int y ){
return x % y;
}
|
by: dingoatemydonut |
last post by:
The C99 standard states:
"In the abstract machine, all expressions are evaluated as specified
by the semantics. An actual implementation need not evaluate part
of an expression if it can deduce...
|
by: yaron |
last post by:
Hi all,
let be focus on sigle processor machine 32 bits.
1. with multi-threaded on single processor machine 32bit do i
have to sync access to atomic get/set properties of type less then 32 bits...
|
by: Amir Shitrit |
last post by:
Hello.
How come it's safe to read non-volatile fields that are shared across
threads using locks for synchronization (for example, Monitor.Enter or
EventWaitHandle), but it's not safe to access...
|
by: titan nyquist |
last post by:
Can you make volatile structures in C#?
I have a static class, to have "global" variables. This allows the
whole program to see them. I make them "volatile" to avoid multi-
threading accessing...
|
by: CptDondo |
last post by:
I'm trying to write what should be a simple program, and it keeps
hanging if I use volatile....
The program, stripped of its error checking, is this:
unsigned short * start;
unsigned short *...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|