Displaying 4 results from an estimated 4 matches for "block_set".
Did you mean:
block_seq
2019 May 19
4
most robust way to call R API functions from a secondary thread
...icitly here before the threads are created because this might
* fail in allocation or with pointer protection stack overflow
*/
SEXP cont = PROTECT(R_MakeUnwindCont());
/* block all signals:
*
* do this before the threads are created such that they inherit the mask
*/
sigset_t block_set, prev_mask;
sigfillset(&block_set);
pthread_sigmask(SIG_SETMASK, &block_set, &prev_mask);
// suspend interrupts:
Rboolean __oldsusp__ = R_interrupts_suspended;
R_interrupts_suspended = TRUE;
// create threads running threaded_fun() ...
for(;;) {
// timed blocking ch...
2019 May 20
1
most robust way to call R API functions from a secondary thread
...* fail in allocation or with pointer protection stack overflow
>> */
>> SEXP cont = PROTECT(R_MakeUnwindCont());
>> /* block all signals:
>> *
>> * do this before the threads are created such that they inherit the mask
>> */
>> sigset_t block_set, prev_mask;
>> sigfillset(&block_set);
>> pthread_sigmask(SIG_SETMASK, &block_set, &prev_mask);
>> // suspend interrupts:
>> Rboolean __oldsusp__ = R_interrupts_suspended;
>> R_interrupts_suspended = TRUE;
>> // create threads running thre...
2019 May 20
0
[External] most robust way to call R API functions from a secondary thread
...reated because this might
> * fail in allocation or with pointer protection stack overflow
> */
> SEXP cont = PROTECT(R_MakeUnwindCont());
>
> /* block all signals:
> *
> * do this before the threads are created such that they inherit the mask
> */
> sigset_t block_set, prev_mask;
> sigfillset(&block_set);
> pthread_sigmask(SIG_SETMASK, &block_set, &prev_mask);
>
> // suspend interrupts:
> Rboolean __oldsusp__ = R_interrupts_suspended;
> R_interrupts_suspended = TRUE;
>
> // create threads running threaded_fun() ...
>...
2019 May 20
0
most robust way to call R API functions from a secondary thread
...is might
> * fail in allocation or with pointer protection stack overflow
> */
> SEXP cont = PROTECT(R_MakeUnwindCont());
>
> /* block all signals:
> *
> * do this before the threads are created such that they inherit the mask
> */
> sigset_t block_set, prev_mask;
> sigfillset(&block_set);
> pthread_sigmask(SIG_SETMASK, &block_set, &prev_mask);
>
> // suspend interrupts:
> Rboolean __oldsusp__ = R_interrupts_suspended;
> R_interrupts_suspended = TRUE;
>
> // create threads running threaded_f...