rnixon wrote: ... task A could be writing data to the file, then task B is handed the file handle and starts writing as well, the data will be mixed will it not?
I apologize for omitting some detail. In my application, task A would pass the handle to task B after task A had finished using the handle.
Search found 7 matches
- Wed Oct 16, 2013 2:31 pm
- Forum: NetBurner Software
- Topic: Sharing a file pointer/handle with another task
- Replies: 7
- Views: 5954
- Wed Oct 16, 2013 2:13 pm
- Forum: NetBurner Software
- Topic: Sharing a file pointer/handle with another task
- Replies: 7
- Views: 5954
Re: Sharing a file pointer/handle with another task
pbreed wrote: I don't know the answer,
but could the task pass the file name instead and then there is no issue....
Until I know the answer, I think that's the direction I will be forced to take.
---------------
rnixon wrote: ... passing just the handle might have a problem. Have you tried it ...
but could the task pass the file name instead and then there is no issue....
Until I know the answer, I think that's the direction I will be forced to take.
---------------
rnixon wrote: ... passing just the handle might have a problem. Have you tried it ...
- Tue Oct 15, 2013 4:51 pm
- Forum: NetBurner Software
- Topic: Sharing a file pointer/handle with another task
- Replies: 7
- Views: 5954
Sharing a file pointer/handle with another task
Let's say I have 2 tasks, A and B. The file system has been initialized. Each of the tasks has called f_enterfs.
Task A opens a file, obtaining the file pointer/handle. Task A passes the file pointer/handle to task B.
Task B uses the file pointer/handle to perform some I/O, and then closes the ...
Task A opens a file, obtaining the file pointer/handle. Task A passes the file pointer/handle to task B.
Task B uses the file pointer/handle to perform some I/O, and then closes the ...
- Fri Sep 27, 2013 11:37 am
- Forum: NetBurner Software
- Topic: Pool buffers in Fifos
- Replies: 7
- Views: 5978
Re: Pool buffers in Fifos
It's a c++ object, so maybe the fifo is freed when the destructor is called?
The netburner code shows fifos as a struct. Also OSFifoInit must be called explicitly
(instead of being included in a constructor), so I think it's a C object.
Are you talking about OS_FIFIO? I'm pretty sure that's ...
The netburner code shows fifos as a struct. Also OSFifoInit must be called explicitly
(instead of being included in a constructor), so I think it's a C object.
Are you talking about OS_FIFIO? I'm pretty sure that's ...
- Thu Sep 26, 2013 5:37 pm
- Forum: NetBurner Software
- Topic: Pool buffers in Fifos
- Replies: 7
- Views: 5978
Re: Pool buffers in Fifos
Are you unregistering the fifo before you exit?
Yes. But unregistering doesn't empty the fifo. It only breaks the
association with a port.
Yes. But unregistering doesn't empty the fifo. It only breaks the
association with a port.
- Thu Sep 26, 2013 12:19 pm
- Forum: NetBurner Software
- Topic: Pool buffers in Fifos
- Replies: 7
- Views: 5978
Pool buffers in Fifos
I have a question about pool buffer management.
Let's say that a function creates, initializes, and then registers a fifo for a UDP port.
The function then waits for incoming packets. Several packets arrive and are placed in
the fifo. The function removes one that it needed, with other packets ...
Let's say that a function creates, initializes, and then registers a fifo for a UDP port.
The function then waits for incoming packets. Several packets arrive and are placed in
the fifo. The function removes one that it needed, with other packets ...
- Thu Jan 22, 2009 11:17 am
- Forum: NetBurner Software
- Topic: Proxy server
- Replies: 0
- Views: 3644
Proxy server
Has anyone had any experience implementing a proxy server (particularly a reverse proxy server) using Netburner ?